Skip to content

Commit

Permalink
Merge 3e23f34 into d412735
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Dec 15, 2016
2 parents d412735 + 3e23f34 commit 9f93722
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions fullscreen/api/document-fullscreen-enabled-active-document.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!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>
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';
});
</script>

0 comments on commit 9f93722

Please sign in to comment.