OLD | NEW |
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 Loading... |
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> |
OLD | NEW |