mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
21 lines
849 B
HTML
21 lines
849 B
HTML
<!DOCTYPE html>
|
|
<title>Element ready check for containing iframe</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="../trusted-click.js"></script>
|
|
<div id="log"></div>
|
|
<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()
|
|
{
|
|
trusted_request(t, iframes[1].contentDocument.body, iframes[0].contentDocument.body);
|
|
iframes[1].contentDocument.onfullscreenchange = t.unreached_func("fullscreenchange event");
|
|
iframes[1].contentDocument.onfullscreenerror = t.step_func_done();
|
|
});
|
|
});
|
|
</script>
|