mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 21:00:42 +02:00
MozReview-Commit-ID: 1GaV7z8d0Xc --HG-- rename : testing/web-platform/tests/preload/link_header_preload_delay_onload.html.headers => testing/web-platform/tests/preload/link-header-preload-delay-onload.html.headers rename : testing/web-platform/tests/preload/link_header_preload.html.headers => testing/web-platform/tests/preload/link-header-preload.html.headers
17 lines
597 B
HTML
17 lines
597 B
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>
|