Bug 1686668 [wpt PR 27185] - Update wpt metadata, a=testonly
[gecko.git] / dom / base / test / test_document_constructor.html
blobf57a525eda88fe28adce95db1ca3f3a9cf5504cf
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1017932
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 1017932</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script type="application/javascript">
13 /** Test for Bug 1017932 **/
14 var doc = new Document;
15 ok(doc instanceof Document, "Should have a document");
16 ok(!(doc instanceof XMLDocument), "Should not be an XMLDocument");
17 ok(!("load" in doc), "Should not have a load() method");
18 is(Object.getPrototypeOf(doc), Document.prototype,
19 "Should have the right proto");
20 </script>
21 </head>
22 <body>
23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1017932">Mozilla Bug 1017932</a>
24 <p id="display"></p>
25 <div id="content" style="display: none">
27 </div>
28 <pre id="test">
29 </pre>
30 </body>
31 </html>