blob: 821b22df3b598f0e5a180b9f64dd3991a503e540 [file] [log] [blame]
<html>
<head>
<script src="../../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="../../resources/js-test-post.js"></script>
</head>
</html>