diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 2ae18bcb3cc..4d30afbe6ea 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -29105,8 +29105,24 @@ ] }, "local_changes": { - "deleted": [], - "items": {}, + "deleted": [ + "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-002.html", + "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-006.html", + "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-004.html", + "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-003.html", + "2dcontext/transformations/canvas_transformations_reset_001.htm", + "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html" + ], + "items": { + "testharness": { + "dom/nodes/CharacterData-surrogates.html": [ + { + "path": "dom/nodes/CharacterData-surrogates.html", + "url": "/dom/nodes/CharacterData-surrogates.html" + } + ] + } + }, "reftest_nodes": {} }, "reftest_nodes": { diff --git a/tests/wpt/metadata/dom/nodes/CharacterData-surrogates.html.ini b/tests/wpt/metadata/dom/nodes/CharacterData-surrogates.html.ini new file mode 100644 index 00000000000..dd8982dd36d --- /dev/null +++ b/tests/wpt/metadata/dom/nodes/CharacterData-surrogates.html.ini @@ -0,0 +1,3 @@ +[CharacterData-surrogates.html] + type: testharness + expected: CRASH diff --git a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-data.html b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-data.html index a8a98d41233..b3b29ea4d76 100644 --- a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-data.html +++ b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-data.html @@ -66,6 +66,15 @@ function testNode(create, type) { assert_equals(node.data, "čłć") assert_equals(node.length, 2) }, type + ".data = 'čłć'") + + test(function() { + var node = create() + assert_equals(node.data, "test") + + node.data = "đ test đ TEST"; + assert_equals(node.data, "đ test đ TEST") + assert_equals(node.length, 15) // Counting UTF-16 code units + }, type + ".data = 'đ test đ TEST'") } testNode(function() { return document.createTextNode("test") }, "Text") diff --git a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-deleteData.html b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-deleteData.html index ef31a79dcf4..02ecbe6abfa 100644 --- a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-deleteData.html +++ b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-deleteData.html @@ -78,6 +78,16 @@ function testNode(create, type) { node.deleteData(45, 2); assert_equals(node.data, "This is the character data test, append čłćďźć´ĺ¤čłć"); }, type + ".deleteData() with non-ascii data") + + test(function() { + var node = create() + assert_equals(node.data, "test") + + node.data = "đ test đ TEST" + + node.deleteData(5, 8); // Counting UTF-16 code units + assert_equals(node.data, "đ teST"); + }, type + ".deleteData() with non-BMP data") } testNode(function() { return document.createTextNode("test") }, "Text") diff --git a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-insertData.html b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-insertData.html index 983e791dca2..5777327c26f 100644 --- a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-insertData.html +++ b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-insertData.html @@ -73,6 +73,16 @@ function testNode(create, type) { node.insertData(48, "ć´ĺ¤"); assert_equals(node.data, "This is the character data test, append more čłćďźć´ĺ¤ć¸ŹčŠŚčłć"); }, type + ".insertData() with non-ascii data") + + test(function() { + var node = create() + assert_equals(node.data, "test") + + node.data = "đ test đ TEST" + + node.insertData(5, "--"); // Counting UTF-16 code units + assert_equals(node.data, "đ te--st đ TEST"); + }, type + ".insertData() with non-BMP data") } testNode(function() { return document.createTextNode("test") }, "Text") diff --git a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-replaceData.html b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-replaceData.html index 78cdc8a9f08..624ee5f237f 100644 --- a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-replaceData.html +++ b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-replaceData.html @@ -146,6 +146,16 @@ function testNode(create, type) { node.replaceData(44, 2, "ćĺ"); assert_equals(node.data, "This is the character data test, other čłćďźć´ĺ¤ćĺ"); }, type + ".replaceData() with non-ASCII data") + + test(function() { + var node = create() + assert_equals(node.data, "test") + + node.data = "đ test đ TEST" + + node.replaceData(5, 8, "--"); // Counting UTF-16 code units + assert_equals(node.data, "đ te--ST"); + }, type + ".replaceData() with non-BMP data") } testNode(function() { return document.createTextNode("test") }, "Text") diff --git a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-substringData.html b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-substringData.html index 84795d0e043..f20b4b202ba 100644 --- a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-substringData.html +++ b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-substringData.html @@ -121,6 +121,15 @@ function testNode(create, type) { assert_equals(node.substringData(12, 4), "char") assert_equals(node.substringData(39, 2), "čłć") }, type + ".substringData() with non-ASCII data") + + test(function() { + var node = create() + assert_equals(node.data, "test") + + node.data = "đ test đ TEST" + + assert_equals(node.substringData(5, 8), "st đ TE") // Counting UTF-16 code units + }, type + ".substringData() with non-BMP data") } testNode(function() { return document.createTextNode("test") }, "Text") diff --git a/tests/wpt/web-platform-tests/dom/nodes/CharacterData-surrogates.html b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-surrogates.html new file mode 100644 index 00000000000..ff1014c5fdd --- /dev/null +++ b/tests/wpt/web-platform-tests/dom/nodes/CharacterData-surrogates.html @@ -0,0 +1,74 @@ + + +