3 <script src=
"../../resources/js-test.js"></script>
7 description("This test checks that Page Visibility state values are correct when a document has no defaultView.");
9 var subdocument
= document
.implementation
.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
11 shouldBeTrue("subdocument.defaultView == null");
12 shouldBeEqualToString("subdocument.visibilityState", "hidden");
13 shouldBeTrue("subdocument.hidden");