| OLD | NEW |
| 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() { |
| 11 var node = create() | 11 var node = create() |
| 12 assert_equals(node.data, "test") | 12 assert_equals(node.data, "test") |
| 13 assert_equals(node.length, 4) | 13 assert_equals(node.length, 4) |
| 14 }, type + ".data initial value") | 14 }, type + ".data initial value") |
| 15 | 15 |
| 16 test(function() { | 16 test(function() { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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> |
| OLD | NEW |