https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e6965b725908b2b16c9d03c49f07c29e5adea742 authored by Chris Lilley on 30 April 2018, 18:30:16 UTC
fix indentation
Tip revision: e6965b7
element-ready-check-containing-iframe-manual.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>
back to top