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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-replaceChild.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.replaceChild</title> 3 <title>Node.replaceChild</title>
4 <script src="../../../../resources/testharness.js"></script> 4 <script src="../../../../resources/testharness.js"></script>
5 <script src="../../../../resources/testharnessreport.js"></script> 5 <script src="../../../../resources/testharnessreport.js"></script>
6 <body><a><b></b><c></c></a> 6 <body><a><b></b><c></c></a>
7 <div id="log"></div> 7 <div id="log"></div>
8 <script> 8 <script>
9 // IDL. 9 // IDL.
10 test(function() { 10 test(function() {
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 gBody.appendChild(parent); 336 gBody.appendChild(parent);
337 var child = document.createElement("div"); 337 var child = document.createElement("div");
338 parent.appendChild(child); 338 parent.appendChild(child);
339 var df = document.createDocumentFragment(); 339 var df = document.createDocumentFragment();
340 var fragChild = df.appendChild(document.createElement("div")); 340 var fragChild = df.appendChild(document.createElement("div"));
341 fragChild.setAttribute("id", TEST_ID); 341 fragChild.setAttribute("id", TEST_ID);
342 parent.replaceChild(df, child); 342 parent.replaceChild(df, child);
343 assert_equals(document.getElementById(TEST_ID), fragChild, "should not be null "); 343 assert_equals(document.getElementById(TEST_ID), fragChild, "should not be null ");
344 }, "Replacing an element with a DocumentFragment should allow a child of the Doc umentFragment to be found by Id.") 344 }, "Replacing an element with a DocumentFragment should allow a child of the Doc umentFragment to be found by Id.")
345 </script> 345 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698