mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
Automatic update from web-platform-tests fullscreen: convert manual tests to automated tests (#37223) -- wpt-commits: e3ef610db09bdb9d8936ee282c8074f409684a56 wpt-pr: 37223
20 lines
639 B
HTML
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>
|