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

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

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (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.cloneNode</title> 3 <title>Node.cloneNode</title>
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-clonenode"> 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-node-clonenode">
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 <div id=log></div> 7 <div id=log></div>
8 <script> 8 <script>
9 function assert_equal_node(nodeA, nodeB) { 9 function assert_equal_node(nodeA, nodeB) {
10 assert_equals(nodeB.nodeType, nodeA.nodeType, "nodeType"); 10 assert_equals(nodeB.nodeType, nodeA.nodeType, "nodeType");
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 assert_equals(copy.childNodes[1].childNodes.length, 1); 263 assert_equals(copy.childNodes[1].childNodes.length, 1);
264 check_copy(grandChild, copy.childNodes[1].childNodes[0], HTMLDivElement); 264 check_copy(grandChild, copy.childNodes[1].childNodes[0], HTMLDivElement);
265 265
266 deep = false; 266 deep = false;
267 copy = parent.cloneNode(deep); 267 copy = parent.cloneNode(deep);
268 268
269 check_copy(parent, copy, HTMLDivElement); 269 check_copy(parent, copy, HTMLDivElement);
270 assert_equals(copy.childNodes.length, 0); 270 assert_equals(copy.childNodes.length, 0);
271 }, "node with children"); 271 }, "node with children");
272 </script> 272 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698