mirror of
https://github.com/servo/servo.git
synced 2025-08-26 15:48:22 +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
|
@ -6,14 +6,16 @@
|
|||
<div id="log"></div>
|
||||
<iframe></iframe>
|
||||
<script>
|
||||
async_test(function(t)
|
||||
{
|
||||
var iframe = document.querySelector("iframe");
|
||||
document.onfullscreenchange = t.unreached_func("document fullscreenchange event");
|
||||
document.onfullscreenerror = t.unreached_func("document fullscreenerror event");
|
||||
iframe.contentDocument.onfullscreenchange = t.unreached_func("iframe fullscreenchange event");
|
||||
iframe.contentDocument.onfullscreenerror = t.step_func_done();
|
||||
assert_false(iframe.contentDocument.fullscreenEnabled, "fullscreen enabled flag");
|
||||
trusted_request(t, iframe.contentDocument.body, document.body);
|
||||
});
|
||||
// wait for load event to avoid https://bugzil.la/1493878
|
||||
window.onload = function() {
|
||||
async_test(function(t) {
|
||||
var iframe = document.querySelector("iframe");
|
||||
document.onfullscreenchange = t.unreached_func("document fullscreenchange event");
|
||||
document.onfullscreenerror = t.unreached_func("document fullscreenerror event");
|
||||
iframe.contentDocument.onfullscreenchange = t.unreached_func("iframe fullscreenchange event");
|
||||
iframe.contentDocument.onfullscreenerror = t.step_func_done();
|
||||
assert_false(iframe.contentDocument.fullscreenEnabled, "fullscreen enabled flag");
|
||||
trusted_request(t, iframe.contentDocument.body, document.body);
|
||||
});
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue