Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-isSameNode.html

Issue 2012333004: Fix testharness paths in imported/wpt/{dom,html}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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() {
11 11
12 var doctype1 = document.implementation.createDocumentType("qualifiedName", "pu blicId", "systemId"); 12 var doctype1 = document.implementation.createDocumentType("qualifiedName", "pu blicId", "systemId");
13 var doctype2 = document.implementation.createDocumentType("qualifiedName", "pu blicId", "systemId"); 13 var doctype2 = document.implementation.createDocumentType("qualifiedName", "pu blicId", "systemId");
14 14
15 assert_true(doctype1.isSameNode(doctype1), "self-comparison"); 15 assert_true(doctype1.isSameNode(doctype1), "self-comparison");
16 assert_false(doctype1.isSameNode(doctype2), "same properties"); 16 assert_false(doctype1.isSameNode(doctype2), "same properties");
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698