From b8f436c755bf35f3dc8c42130c16a6c3d7764bbb Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Tue, 18 Jun 2024 15:39:49 -0400 Subject: [PATCH] test: update encoding web-platform tests PR-URL: https://github.com/nodejs/node/pull/53477 Reviewed-By: Moshe Atlow Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca --- test/fixtures/wpt/README.md | 2 +- test/fixtures/wpt/encoding/api-basics.any.js | 1 + .../wpt/encoding/api-surrogates-utf8.any.js | 1 + test/fixtures/wpt/encoding/encodeInto.any.js | 1 + .../wpt/encoding/iso-2022-jp-decoder.any.js | 2 + .../gb18030/gb18030-decoder.any.js | 38 ++++++++++++++++++ .../gb18030/gb18030-encoder.html | 38 ++++++++++++++++++ .../resources/utf-32-big-endian-nobom.xml | Bin 1480 -> 8192 bytes .../resources/utf-32-little-endian-nobom.xml | Bin 1480 -> 8192 bytes .../wpt/encoding/sharedarraybuffer.https.html | 4 +- .../wpt/encoding/streams/backpressure.any.js | 2 +- .../encoding/streams/decode-attributes.any.js | 2 +- .../encoding/streams/decode-bad-chunks.any.js | 2 +- .../encoding/streams/decode-non-utf8.any.js | 2 +- .../readable-writable-properties.any.js | 2 +- .../wpt/encoding/textdecoder-arguments.any.js | 1 + .../textdecoder-byte-order-marks.any.js | 1 + .../textdecoder-fatal-streaming.any.js | 1 + .../wpt/encoding/textdecoder-fatal.any.js | 1 + .../wpt/encoding/textdecoder-ignorebom.any.js | 1 + .../textdecoder-utf16-surrogates.any.js | 1 + .../textencoder-utf16-surrogates.any.js | 1 + test/fixtures/wpt/versions.json | 2 +- test/wpt/status/encoding.json | 6 +++ 24 files changed, 102 insertions(+), 10 deletions(-) diff --git a/test/fixtures/wpt/README.md b/test/fixtures/wpt/README.md index d75e795916c362..8a126075f38128 100644 --- a/test/fixtures/wpt/README.md +++ b/test/fixtures/wpt/README.md @@ -15,7 +15,7 @@ Last update: - console: https://github.com/web-platform-tests/wpt/tree/767ae35464/console - dom/abort: https://github.com/web-platform-tests/wpt/tree/d1f1ecbd52/dom/abort - dom/events: https://github.com/web-platform-tests/wpt/tree/ab8999891c/dom/events -- encoding: https://github.com/web-platform-tests/wpt/tree/a58bbf6d8c/encoding +- encoding: https://github.com/web-platform-tests/wpt/tree/5aa50dd415/encoding - fetch/data-urls/resources: https://github.com/web-platform-tests/wpt/tree/7c79d998ff/fetch/data-urls/resources - FileAPI: https://github.com/web-platform-tests/wpt/tree/cceaf3628d/FileAPI - hr-time: https://github.com/web-platform-tests/wpt/tree/34cafd797e/hr-time diff --git a/test/fixtures/wpt/encoding/api-basics.any.js b/test/fixtures/wpt/encoding/api-basics.any.js index 941b878738ce71..768f8159313ece 100644 --- a/test/fixtures/wpt/encoding/api-basics.any.js +++ b/test/fixtures/wpt/encoding/api-basics.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: Basics test(function() { diff --git a/test/fixtures/wpt/encoding/api-surrogates-utf8.any.js b/test/fixtures/wpt/encoding/api-surrogates-utf8.any.js index a4ced03d428e94..52d29731494041 100644 --- a/test/fixtures/wpt/encoding/api-surrogates-utf8.any.js +++ b/test/fixtures/wpt/encoding/api-surrogates-utf8.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: Invalid UTF-16 surrogates with UTF-8 encoding var badStrings = [ diff --git a/test/fixtures/wpt/encoding/encodeInto.any.js b/test/fixtures/wpt/encoding/encodeInto.any.js index 69d7089006ec38..9ea36d23d08cca 100644 --- a/test/fixtures/wpt/encoding/encodeInto.any.js +++ b/test/fixtures/wpt/encoding/encodeInto.any.js @@ -129,6 +129,7 @@ "Uint8ClampedArray", "BigInt64Array", "BigUint64Array", + "Float16Array", "Float32Array", "Float64Array"].forEach(type => { ["ArrayBuffer", "SharedArrayBuffer"].forEach((arrayBufferOrSharedArrayBuffer) => { diff --git a/test/fixtures/wpt/encoding/iso-2022-jp-decoder.any.js b/test/fixtures/wpt/encoding/iso-2022-jp-decoder.any.js index b02259b9600e47..f9915a2fcf6254 100644 --- a/test/fixtures/wpt/encoding/iso-2022-jp-decoder.any.js +++ b/test/fixtures/wpt/encoding/iso-2022-jp-decoder.any.js @@ -1,3 +1,5 @@ +// META: global=window,dedicatedworker,shadowrealm +// function decode(input, output, desc) { test(function() { var d = new TextDecoder("iso-2022-jp"), diff --git a/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.js b/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.js index 99a0253ba6b680..fca68358623bd9 100644 --- a/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.js +++ b/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.js @@ -47,6 +47,44 @@ decode([0x83, 0x36, 0xC8, 0x30], "\uE7C8", "legacy ICU special case 1"); decode([0xA1, 0xAD], "\u2026", "legacy ICU special case 2"); decode([0xA1, 0xAB], "\uFF5E", "legacy ICU special case 3"); +// GB18030-2022 +decode([0xA6, 0xD9], "\uFE10", "GB18030-2022 1"); +decode([0xA6, 0xDA], "\uFE12", "GB18030-2022 2"); +decode([0xA6, 0xDB], "\uFE11", "GB18030-2022 3"); +decode([0xA6, 0xDC], "\uFE13", "GB18030-2022 4"); +decode([0xA6, 0xDD], "\uFE14", "GB18030-2022 5"); +decode([0xA6, 0xDE], "\uFE15", "GB18030-2022 6"); +decode([0xA6, 0xDF], "\uFE16", "GB18030-2022 7"); +decode([0xA6, 0xEC], "\uFE17", "GB18030-2022 8"); +decode([0xA6, 0xED], "\uFE18", "GB18030-2022 9"); +decode([0xA6, 0xF3], "\uFE19", "GB18030-2022 10"); +decode([0xFE, 0x59], "\u9FB4", "GB18030-2022 11"); +decode([0xFE, 0x61], "\u9FB5", "GB18030-2022 12"); +decode([0xFE, 0x66], "\u9FB6", "GB18030-2022 13"); +decode([0xFE, 0x67], "\u9FB7", "GB18030-2022 14"); +decode([0xFE, 0x6D], "\u9FB8", "GB18030-2022 15"); +decode([0xFE, 0x7E], "\u9FB9", "GB18030-2022 16"); +decode([0xFE, 0x90], "\u9FBA", "GB18030-2022 17"); +decode([0xFE, 0xA0], "\u9FBB", "GB18030-2022 18"); +decode([0x82, 0x35, 0x90, 0x37], "\uE81E", "GB18030-2022 19"); +decode([0x82, 0x35, 0x90, 0x38], "\uE826", "GB18030-2022 20"); +decode([0x82, 0x35, 0x90, 0x39], "\uE82B", "GB18030-2022 21"); +decode([0x82, 0x35, 0x91, 0x30], "\uE82C", "GB18030-2022 22"); +decode([0x82, 0x35, 0x91, 0x31], "\uE832", "GB18030-2022 23"); +decode([0x82, 0x35, 0x91, 0x32], "\uE843", "GB18030-2022 24"); +decode([0x82, 0x35, 0x91, 0x33], "\uE854", "GB18030-2022 25"); +decode([0x82, 0x35, 0x91, 0x34], "\uE864", "GB18030-2022 26"); +decode([0x84, 0x31, 0x82, 0x36], "\uE78D", "GB18030-2022 27"); +decode([0x84, 0x31, 0x82, 0x37], "\uE78F", "GB18030-2022 28"); +decode([0x84, 0x31, 0x82, 0x38], "\uE78E", "GB18030-2022 29"); +decode([0x84, 0x31, 0x82, 0x39], "\uE790", "GB18030-2022 30"); +decode([0x84, 0x31, 0x83, 0x30], "\uE791", "GB18030-2022 31"); +decode([0x84, 0x31, 0x83, 0x31], "\uE792", "GB18030-2022 32"); +decode([0x84, 0x31, 0x83, 0x32], "\uE793", "GB18030-2022 33"); +decode([0x84, 0x31, 0x83, 0x33], "\uE794", "GB18030-2022 34"); +decode([0x84, 0x31, 0x83, 0x34], "\uE795", "GB18030-2022 35"); +decode([0x84, 0x31, 0x83, 0x35], "\uE796", "GB18030-2022 36"); + let i = 0; for (const range of ranges) { const pointer = range[0]; diff --git a/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html b/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html index a6570c8d2b8001..531d26084e27dc 100644 --- a/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html +++ b/test/fixtures/wpt/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html @@ -24,6 +24,44 @@ encode("\u2026", "%A1%AD", "legacy ICU special case 2"); encode("\uFF5E", "%A1%AB", "legacy ICU special case 3"); + // GB18030-2022 + encode("\uFE10", "%A6%D9", "GB18030-2022 1"); + encode("\uFE12", "%A6%DA", "GB18030-2022 2"); + encode("\uFE11", "%A6%DB", "GB18030-2022 3"); + encode("\uFE13", "%A6%DC", "GB18030-2022 4"); + encode("\uFE14", "%A6%DD", "GB18030-2022 5"); + encode("\uFE15", "%A6%DE", "GB18030-2022 6"); + encode("\uFE16", "%A6%DF", "GB18030-2022 7"); + encode("\uFE17", "%A6%EC", "GB18030-2022 8"); + encode("\uFE18", "%A6%ED", "GB18030-2022 9"); + encode("\uFE19", "%A6%F3", "GB18030-2022 10"); + encode("\u9FB4", "%FEY", "GB18030-2022 11"); + encode("\u9FB5", "%FEa", "GB18030-2022 12"); + encode("\u9FB6", "%FEf", "GB18030-2022 13"); + encode("\u9FB7", "%FEg", "GB18030-2022 14"); + encode("\u9FB8", "%FEm", "GB18030-2022 15"); + encode("\u9FB9", "%FE~", "GB18030-2022 16"); + encode("\u9FBA", "%FE%90", "GB18030-2022 17"); + encode("\u9FBB", "%FE%A0", "GB18030-2022 18"); + encode("\uE78D", "%841%826", "GB18030-2022 19"); + encode("\uE78E", "%841%828", "GB18030-2022 20"); + encode("\uE78F", "%841%827", "GB18030-2022 21"); + encode("\uE790", "%841%829", "GB18030-2022 22"); + encode("\uE791", "%841%830", "GB18030-2022 23"); + encode("\uE792", "%841%831", "GB18030-2022 24"); + encode("\uE793", "%841%832", "GB18030-2022 25"); + encode("\uE794", "%841%833", "GB18030-2022 26"); + encode("\uE795", "%841%834", "GB18030-2022 27"); + encode("\uE796", "%841%835", "GB18030-2022 28"); + encode("\uE81E", "%825%907", "GB18030-2022 29"); + encode("\uE826", "%825%908", "GB18030-2022 30"); + encode("\uE82B", "%825%909", "GB18030-2022 31"); + encode("\uE82C", "%825%910", "GB18030-2022 32"); + encode("\uE832", "%825%911", "GB18030-2022 33"); + encode("\uE843", "%825%912", "GB18030-2022 34"); + encode("\uE854", "%825%913", "GB18030-2022 35"); + encode("\uE864", "%825%914", "GB18030-2022 36"); + const upperCaseNibble = x => { return Math.floor(x).toString(16).toUpperCase(); } diff --git a/test/fixtures/wpt/encoding/resources/utf-32-big-endian-nobom.xml b/test/fixtures/wpt/encoding/resources/utf-32-big-endian-nobom.xml index f704501ccae0d6945406666ebd1e1c13eb747458..f51213c965ce748dd4a17fd052afdad909392403 100644 GIT binary patch literal 8192 zcmeHIdr(x@8AmG^Nm}HoNwr-y6j@lk_wL=tRU}NzM&#jw4;~>5Dg;P_pd#{!#^7Ls zZX;?S0mbMLEgHb`uoksOGlmoxA;DB3K0qLcz-`$ztcfWhS z=lPv;zxA@RvU-h>Mp!{eASeiH3GWbA6Osw<5|RjsggJz%1fDR1zzx4E=!qEkL=)g2 zLqIIn;s|o=64DnF-Xy39YJxy`onRm!Kl<_}*b=-5QwVPmjD)!a#D^1t2#8S-;t6XA z=6iu1^^iM&FrR>U1p#$Xf95bk>4{!om)B4eweVCB!U(`^kqNc)rdH}46& z<6BrpK!4_USH9zN+%NS5H^_&5;R#N0#?Wzg-~hSdCv%ZLyawCzc!fXW5d+TgoghE% z8=mM5KCmGNd~pX*SGFlgk0l^RUPB)6HBv6wj3|JVjFkoSTF~B9Q^&Mr#h2SahdO?B|wM^eIZ0=EbjZmIh~lwdT4%a|SYBXO z4g7hLt!S9k!IRfot^1Q3c;rA9typFGFkXvcMO}IzmfB(xT~QgPqZ3L2$*Kqfu|YrV zOHeZ(R!h*bb=Ie#W9zKCz$yyhM-admN#+TL1>s3`Fu+S1)KzovRI`56tcqGd4{EkM zHLIv*+^QK@Y8^Tewdh>rn5UNIksw9Ju!wUPL^W6vS(L~!h$34N5hZF_9>%$dJ0OU9 zW@SBV*a?by@F23x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6N&!&$^k~1&v#~a&9JGdKm4O6@Pr>;fft0bFAX3)LFk8{9)dr-g7^A zEjst~ROiIVv0O@bMVq?wP}9PNFGb(=Ki@krdw;Iy-2w0UE?s=3)9vZwyjmhg#dp^z zkL4Flb&%>~Z+g`^F5A=6ksX&)>omt>ymWVwW%A-VrkhrMlv-oje^8$k6LevUcGhcw zS!VUcNm(`9vo(R2w)e;8`Mzb2_~(1ddN1=~MMBwi(}U{hF{8Cd@uU7*cZbwtaj;3?&pX5AVl2G1n zEQssaJx-(A>yUAJ>_MNG&un`VU1A6x(Q9pvar01y4*0CtP`@(Gj6$2LW-J-ht=0f*B584D*ybsZepdb%dE*6T>_t#=F6HIhT~+B&{$ z@s}$vxP+ZDUGZ6)8DV|w+dFfSH+ySlx?tv#NQje@66SW z4VL1mqtt~1npaLK!xB7-_Wimfynatg`>Hc`g2^?%;fQ#%WJ>Y YB%Dnf{n!1M-K|Y$s;&i%*_oI8FZECspa1{> delta 7 OcmZp0IKjQ)1S { const decoder = new TextDecoder('utf-8'); const buffer = new SharedArrayBuffer(4); - assert_throws_js(TypeError, () => { - decoder.decode(new Uint8Array(buffer)); - }, 'constructing TextDecoder with SharedArrayBuffer view should throw'); + assert_equals(decoder.decode(new Uint8Array(buffer)), "\u0000\u0000\u0000\u0000"); }, 'decoding SharedArrayBuffer'); diff --git a/test/fixtures/wpt/encoding/streams/backpressure.any.js b/test/fixtures/wpt/encoding/streams/backpressure.any.js index 22f7f0aa2bc643..0f67e3358414d3 100644 --- a/test/fixtures/wpt/encoding/streams/backpressure.any.js +++ b/test/fixtures/wpt/encoding/streams/backpressure.any.js @@ -1,4 +1,4 @@ -// META: global=window,worker +// META: global=window,worker,shadowrealm 'use strict'; diff --git a/test/fixtures/wpt/encoding/streams/decode-attributes.any.js b/test/fixtures/wpt/encoding/streams/decode-attributes.any.js index 0843cc665fd39f..f64f45b56acba9 100644 --- a/test/fixtures/wpt/encoding/streams/decode-attributes.any.js +++ b/test/fixtures/wpt/encoding/streams/decode-attributes.any.js @@ -1,4 +1,4 @@ -// META: global=window,worker +// META: global=window,worker,shadowrealm 'use strict'; diff --git a/test/fixtures/wpt/encoding/streams/decode-bad-chunks.any.js b/test/fixtures/wpt/encoding/streams/decode-bad-chunks.any.js index b7b2dd58459d0e..21d61427a2bca3 100644 --- a/test/fixtures/wpt/encoding/streams/decode-bad-chunks.any.js +++ b/test/fixtures/wpt/encoding/streams/decode-bad-chunks.any.js @@ -1,4 +1,4 @@ -// META: global=window,worker +// META: global=window,worker,shadowrealm 'use strict'; diff --git a/test/fixtures/wpt/encoding/streams/decode-non-utf8.any.js b/test/fixtures/wpt/encoding/streams/decode-non-utf8.any.js index 2950a9e58edcbd..effdee3b430de5 100644 --- a/test/fixtures/wpt/encoding/streams/decode-non-utf8.any.js +++ b/test/fixtures/wpt/encoding/streams/decode-non-utf8.any.js @@ -1,4 +1,4 @@ -// META: global=window,worker +// META: global=window,worker,shadowrealm 'use strict'; diff --git a/test/fixtures/wpt/encoding/streams/readable-writable-properties.any.js b/test/fixtures/wpt/encoding/streams/readable-writable-properties.any.js index 234649209cfa40..8084cb99421450 100644 --- a/test/fixtures/wpt/encoding/streams/readable-writable-properties.any.js +++ b/test/fixtures/wpt/encoding/streams/readable-writable-properties.any.js @@ -1,4 +1,4 @@ -// META: global=window,worker +// META: global=window,worker,shadowrealm // This just tests that the "readable" and "writable" properties pass the brand // checks. All other relevant attributes are covered by the IDL tests. diff --git a/test/fixtures/wpt/encoding/textdecoder-arguments.any.js b/test/fixtures/wpt/encoding/textdecoder-arguments.any.js index f469dcd30eaf87..2d137b7aa37e15 100644 --- a/test/fixtures/wpt/encoding/textdecoder-arguments.any.js +++ b/test/fixtures/wpt/encoding/textdecoder-arguments.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: TextDecoder decode() optional arguments test(t => { diff --git a/test/fixtures/wpt/encoding/textdecoder-byte-order-marks.any.js b/test/fixtures/wpt/encoding/textdecoder-byte-order-marks.any.js index 9ef0d73141a0e0..31350fdf689ed6 100644 --- a/test/fixtures/wpt/encoding/textdecoder-byte-order-marks.any.js +++ b/test/fixtures/wpt/encoding/textdecoder-byte-order-marks.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: Byte-order marks var testCases = [ diff --git a/test/fixtures/wpt/encoding/textdecoder-fatal-streaming.any.js b/test/fixtures/wpt/encoding/textdecoder-fatal-streaming.any.js index 0d58b2e1d7d8a1..9043b43eae29aa 100644 --- a/test/fixtures/wpt/encoding/textdecoder-fatal-streaming.any.js +++ b/test/fixtures/wpt/encoding/textdecoder-fatal-streaming.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: End-of-file test(function() { diff --git a/test/fixtures/wpt/encoding/textdecoder-fatal.any.js b/test/fixtures/wpt/encoding/textdecoder-fatal.any.js index f9ccb2dfa7608b..054b35f21f4887 100644 --- a/test/fixtures/wpt/encoding/textdecoder-fatal.any.js +++ b/test/fixtures/wpt/encoding/textdecoder-fatal.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: Fatal flag var bad = [ diff --git a/test/fixtures/wpt/encoding/textdecoder-ignorebom.any.js b/test/fixtures/wpt/encoding/textdecoder-ignorebom.any.js index 81f210eec89b4e..e825698ba40523 100644 --- a/test/fixtures/wpt/encoding/textdecoder-ignorebom.any.js +++ b/test/fixtures/wpt/encoding/textdecoder-ignorebom.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: TextDecoder ignoreBOM option var cases = [ diff --git a/test/fixtures/wpt/encoding/textdecoder-utf16-surrogates.any.js b/test/fixtures/wpt/encoding/textdecoder-utf16-surrogates.any.js index b08ea56cee38a2..7e8322cd19c213 100644 --- a/test/fixtures/wpt/encoding/textdecoder-utf16-surrogates.any.js +++ b/test/fixtures/wpt/encoding/textdecoder-utf16-surrogates.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: UTF-16 surrogate handling var bad = [ diff --git a/test/fixtures/wpt/encoding/textencoder-utf16-surrogates.any.js b/test/fixtures/wpt/encoding/textencoder-utf16-surrogates.any.js index 014a0ebb12d0f6..31657516455bd6 100644 --- a/test/fixtures/wpt/encoding/textencoder-utf16-surrogates.any.js +++ b/test/fixtures/wpt/encoding/textencoder-utf16-surrogates.any.js @@ -1,3 +1,4 @@ +// META: global=window,dedicatedworker,shadowrealm // META: title=Encoding API: USVString surrogate handling when encoding var bad = [ diff --git a/test/fixtures/wpt/versions.json b/test/fixtures/wpt/versions.json index bf3c5b5a54c96c..6663721774d521 100644 --- a/test/fixtures/wpt/versions.json +++ b/test/fixtures/wpt/versions.json @@ -20,7 +20,7 @@ "path": "dom/events" }, "encoding": { - "commit": "a58bbf6d8c0db1f1fd5352e846acb0754ee55567", + "commit": "5aa50dd4151b5bc1d04d5505366c6e27df30af5b", "path": "encoding" }, "fetch/data-urls/resources": { diff --git a/test/wpt/status/encoding.json b/test/wpt/status/encoding.json index db481cca6a09df..e78a8b3c0791be 100644 --- a/test/wpt/status/encoding.json +++ b/test/wpt/status/encoding.json @@ -77,6 +77,12 @@ "requires": ["full-icu"] }, "encodeInto.any.js": { + "fail": { + "expected": [ + "Invalid encodeInto() destination: Float16Array, backed by: ArrayBuffer", + "Invalid encodeInto() destination: Float16Array, backed by: SharedArrayBuffer" + ] + }, "requires": ["small-icu"] }, "textdecoder-copy.any.js": {