diff options
Diffstat (limited to 'testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled.html')
-rw-r--r-- | testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled.html b/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled.html new file mode 100644 index 000000000..d45bb1576 --- /dev/null +++ b/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled.html @@ -0,0 +1,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> |