mirror of
https://github.com/servo/servo.git
synced 2025-09-04 12:08:21 +01:00
Update web-platform-tests to revision 36634cbcf3253dfe8d220990a27ad4eeebf8ec2f
This commit is contained in:
parent
0964d055cd
commit
7295abcc2a
245 changed files with 5966 additions and 1901 deletions
|
@ -7,18 +7,19 @@
|
|||
<iframe allowfullscreen></iframe>
|
||||
<iframe allowfullscreen></iframe>
|
||||
<script>
|
||||
async_test(function(t)
|
||||
{
|
||||
var iframes = document.getElementsByTagName("iframe");
|
||||
trusted_request(t, iframes[0].contentDocument.body, document.body);
|
||||
iframes[0].contentDocument.onfullscreenchange = t.step_func(function()
|
||||
{
|
||||
assert_equals(document.fullscreenElement, iframes[0]);
|
||||
trusted_request(t, iframes[1].contentDocument.body, iframes[0].contentDocument.body);
|
||||
iframes[1].contentDocument.onfullscreenchange = t.step_func_done(function() {
|
||||
assert_equals(document.fullscreenElement, iframes[1]);
|
||||
});
|
||||
iframes[1].contentDocument.onfullscreenerror = t.unreached_func("fullscreenchange error");
|
||||
});
|
||||
});
|
||||
// wait for load event to avoid https://bugzil.la/1493878
|
||||
window.onload = function() {
|
||||
async_test(function(t) {
|
||||
var iframes = document.getElementsByTagName("iframe");
|
||||
trusted_request(t, iframes[0].contentDocument.body, document.body);
|
||||
iframes[0].contentDocument.onfullscreenchange = t.step_func(function() {
|
||||
assert_equals(document.fullscreenElement, iframes[0]);
|
||||
trusted_request(t, iframes[1].contentDocument.body, iframes[0].contentDocument.body);
|
||||
iframes[1].contentDocument.onfullscreenchange = t.step_func_done(function() {
|
||||
assert_equals(document.fullscreenElement, iframes[1]);
|
||||
});
|
||||
iframes[1].contentDocument.onfullscreenerror = t.unreached_func("fullscreenchange error");
|
||||
});
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue