OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
3 <title>Node.prototype.isSameNode</title> | 3 <title>Node.prototype.isSameNode</title> |
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-issamenode"> | 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-issamenode"> |
5 <script src="../../../../resources/testharness.js"></script> | 5 <script src="../../../../resources/testharness.js"></script> |
6 <script src="../../../../resources/testharnessreport.js"></script> | 6 <script src="../../../../resources/testharnessreport.js"></script> |
7 <script> | 7 <script> |
8 "use strict"; | 8 "use strict"; |
9 | 9 |
10 test(function() { | 10 test(function() { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 var document1 = document.implementation.createDocument("", ""); | 91 var document1 = document.implementation.createDocument("", ""); |
92 var document2 = document.implementation.createDocument("", ""); | 92 var document2 = document.implementation.createDocument("", ""); |
93 | 93 |
94 assert_true(document1.isSameNode(document1), "self-comparison"); | 94 assert_true(document1.isSameNode(document1), "self-comparison"); |
95 assert_false(document1.isSameNode(document2), "another empty XML document"); | 95 assert_false(document1.isSameNode(document2), "another empty XML document"); |
96 assert_false(document1.isSameNode(null), "with null other node"); | 96 assert_false(document1.isSameNode(null), "with null other node"); |
97 | 97 |
98 }, "documents should not be compared on reference"); | 98 }, "documents should not be compared on reference"); |
99 | 99 |
100 </script> | 100 </script> |
OLD | NEW |