blob: b8f3a383c36aff8941a3968fe82f9b028191f0dd [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description('This tests that Document is constructable.');
shouldBe('typeof new Document', '"object"');
shouldBe('Object.prototype.toString.call(new Document)', '"[object Document]"');
shouldBeTrue('new Document instanceof Document');
shouldBe('Object.getPrototypeOf(new Document)', 'Document.prototype');
shouldBe('document.origin', 'new Document().origin');
</script>
<script src="../../../resources/js-test-post.js"></script>