mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +01:00
Update web-platform-tests to revision b'4a4653e088039aec186d6dc1d488120d77695c3a'
This commit is contained in:
parent
470a50ab60
commit
6337336fab
1043 changed files with 19705 additions and 6973 deletions
|
@ -1,21 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Document#fullscreenEnabled when the document is not the active document</title>
|
||||
<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>
|
||||
var t = async_test();
|
||||
|
||||
onload = t.step_func(() => {
|
||||
var iframe = document.querySelector("iframe");
|
||||
var documentBeforeNav = iframe.contentDocument;
|
||||
|
||||
iframe.onload = t.step_func_done(() => {
|
||||
assert_false(documentBeforeNav.fullscreenEnabled);
|
||||
});
|
||||
|
||||
// Navigate the iframe
|
||||
window[0].location.href = '/common/blank.html';
|
||||
});
|
||||
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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue