blob: b405479836fde883c74b5fb921b2f55becae1966 [file] [edit]
<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
<script>
description("This test checks that Page Visibility state values are correct when a document has no defaultView.");
var subdocument = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
shouldBeTrue("subdocument.defaultView == null");
shouldBeEqualToString("subdocument.visibilityState", "hidden");
shouldBeTrue("subdocument.hidden");
</script>
<script src="../js/resources/js-test-post.js"></script>
</head>
</html>