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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Node-normalize.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 <title>Node.normalize()</title> 2 <title>Node.normalize()</title>
3 <script src="../../../../resources/testharness.js"></script> 3 <script src="../../../../resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script> 4 <script src="../../../../resources/testharnessreport.js"></script>
5 <div id=log></div> 5 <div id=log></div>
6 <script> 6 <script>
7 test(function() { 7 test(function() {
8 var df = document.createDocumentFragment(), 8 var df = document.createDocumentFragment(),
9 t1 = document.createTextNode("1"), 9 t1 = document.createTextNode("1"),
10 t2 = document.createTextNode("2"), 10 t2 = document.createTextNode("2"),
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 }, "Empty text nodes separated by a non-empty text node") 45 }, "Empty text nodes separated by a non-empty text node")
46 test(function() { 46 test(function() {
47 var div = document.createElement("div") 47 var div = document.createElement("div")
48 var t1 = div.appendChild(document.createTextNode("")) 48 var t1 = div.appendChild(document.createTextNode(""))
49 var t2 = div.appendChild(document.createTextNode("")) 49 var t2 = div.appendChild(document.createTextNode(""))
50 assert_array_equals(div.childNodes, [t1, t2]) 50 assert_array_equals(div.childNodes, [t1, t2])
51 div.normalize(); 51 div.normalize();
52 assert_array_equals(div.childNodes, []) 52 assert_array_equals(div.childNodes, [])
53 }, "Empty text nodes") 53 }, "Empty text nodes")
54 </script> 54 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698