summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled.html
blob: d45bb1576e9111d379a0f85985c088f8c94caf21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!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>