Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fullscreen / api / document-fullscreen-enabled.html
blob07428479c8577a7f1ed8f3770ab99093833f09e4
1 <!DOCTYPE html>
2 <title>Document.fullscreenEnabled</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <iframe></iframe>
7 <iframe allowfullscreen></iframe>
8 <script>
9 test(function()
11 assert_true(document.fullscreenEnabled, "top-level document");
13 var iframes = document.getElementsByTagName("iframe");
14 assert_false(iframes[0].contentDocument.fullscreenEnabled, "iframe without allowfullscreen");
15 assert_true(iframes[1].contentDocument.fullscreenEnabled, "iframe with allowfullscreen");
16 });
17 </script>