Files
firefox/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled.html
Philip Jägenstedt 9143b4830b Bug 1660199 [wpt PR 25140] - Simplify document-fullscreen-enabled.html, a=testonly
Automatic update from web-platform-tests
Simplify document-fullscreen-enabled.html (#25140)

Fixes https://github.com/web-platform-tests/wpt/issues/24581.
--

wpt-commits: 19e5bdc85f6a1d2fb7eab02e253f58b618b0ec8b
wpt-pr: 25140
2020-08-27 08:45:25 +00:00

18 lines
574 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>
<script>
test(function()
{
assert_true(document.fullscreenEnabled, "top-level document");
const iframe = document.querySelector("iframe");
assert_true(iframe.contentDocument.fullscreenEnabled, "same-origin iframe");
});
// The cross-origin iframe case is tested in
// /html/semantics/embedded-content/the-iframe-element/iframe-allowfullscreen.html
</script>