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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/CharacterData-data.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>CharacterData.data</title> 3 <title>CharacterData.data</title>
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-characterdata-data"> 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-characterdata-data">
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 testNode(create, type) { 9 function testNode(create, type) {
10 test(function() { 10 test(function() {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 node.data = "🌠 test 🌠 TEST"; 74 node.data = "🌠 test 🌠 TEST";
75 assert_equals(node.data, "🌠 test 🌠 TEST") 75 assert_equals(node.data, "🌠 test 🌠 TEST")
76 assert_equals(node.length, 15) // Counting UTF-16 code units 76 assert_equals(node.length, 15) // Counting UTF-16 code units
77 }, type + ".data = '🌠 test 🌠 TEST'") 77 }, type + ".data = '🌠 test 🌠 TEST'")
78 } 78 }
79 79
80 testNode(function() { return document.createTextNode("test") }, "Text") 80 testNode(function() { return document.createTextNode("test") }, "Text")
81 testNode(function() { return document.createComment("test") }, "Comment") 81 testNode(function() { return document.createComment("test") }, "Comment")
82 </script> 82 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698