Files
firefox/testing/web-platform/tests/fullscreen/api/document-fullscreen-enabled-active-document.html
Marcos Cáceres 917c0c32b1 Bug 1803073 [wpt PR 37223] - fullscreen: convert manual tests to automated tests, a=testonly
Automatic update from web-platform-tests
fullscreen: convert manual tests to automated tests (#37223)

--

wpt-commits: e3ef610db09bdb9d8936ee282c8074f409684a56
wpt-pr: 37223
2022-12-12 11:38:41 +00:00

20 lines
639 B
HTML

<!DOCTYPE html>
<title>
Document#fullscreenEnabled when the document is not the active document
</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<iframe allowfullscreen></iframe>
<script>
promise_test(async (t) => {
const iframe = document.querySelector("iframe");
const documentBeforeNav = iframe.contentDocument;
await new Promise((resolve) => {
iframe.onload = resolve;
iframe.src = "/common/blank.html";
});
assert_false(documentBeforeNav.fullscreenEnabled)
});
</script>