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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/CharacterData-deleteData.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.deleteData</title> 3 <title>CharacterData.deleteData</title>
4 <link rel=help href="https://dom.spec.whatwg.org/#dom-characterdata-deletedata"> 4 <link rel=help href="https://dom.spec.whatwg.org/#dom-characterdata-deletedata">
5 <link rel=help href="https://dom.spec.whatwg.org/#dom-characterdata-data"> 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-characterdata-data">
6 <script src="../../../../resources/testharness.js"></script> 6 <script src="../../../../resources/testharness.js"></script>
7 <script src="../../../../resources/testharnessreport.js"></script> 7 <script src="../../../../resources/testharnessreport.js"></script>
8 <div id="log"></div> 8 <div id="log"></div>
9 <script> 9 <script>
10 function testNode(create, type) { 10 function testNode(create, type) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 node.data = "🌠 test 🌠 TEST" 86 node.data = "🌠 test 🌠 TEST"
87 87
88 node.deleteData(5, 8); // Counting UTF-16 code units 88 node.deleteData(5, 8); // Counting UTF-16 code units
89 assert_equals(node.data, "🌠 teST"); 89 assert_equals(node.data, "🌠 teST");
90 }, type + ".deleteData() with non-BMP data") 90 }, type + ".deleteData() with non-BMP data")
91 } 91 }
92 92
93 testNode(function() { return document.createTextNode("test") }, "Text") 93 testNode(function() { return document.createTextNode("test") }, "Text")
94 testNode(function() { return document.createComment("test") }, "Comment") 94 testNode(function() { return document.createComment("test") }, "Comment")
95 </script> 95 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698