Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Node / missing-arguments.html
blob427f28cb31dbb657d5521bf8467346d4a3aaed5e
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 var documentFragment = document.createDocumentFragment();
9 var documentType = document.doctype;
10 var element = document.documentElement;
11 var characterData = document.createTextNode("");
13 "compareDocumentPosition()",
14 "contains()",
15 "isDefaultNamespace()",
16 "isEqualNode()",
17 "lookupNamespaceURI()",
18 "lookupPrefix()"
19 ].forEach(function(expr)
21 shouldThrow("document." + expr);
22 shouldThrow("documentFragment." + expr);
23 shouldThrow("documentType." + expr);
24 shouldThrow("element." + expr);
25 shouldThrow("characterData." + expr);
26 });
27 </script>
28 </body>
29 </html>