https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 21723c60a58b1be1c940a2d284bdcd54b34715cd authored by Jarryd on 13 December 2018, 18:38:01 UTC
Cookie Store: Test cross-origin frames + service workers.
Tip revision: 21723c6
document-fullscreen-enabled.html
<!DOCTYPE html>
<title>Document#fullscreenEnabled</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<iframe></iframe>
<iframe allowfullscreen></iframe>
<script>
test(function()
{
    assert_true(document.fullscreenEnabled, "top-level document");

    var iframes = document.getElementsByTagName("iframe");
    assert_false(iframes[0].contentDocument.fullscreenEnabled, "iframe without allowfullscreen");
    assert_true(iframes[1].contentDocument.fullscreenEnabled, "iframe with allowfullscreen");
});
</script>
back to top