Skip to content

Commit a3ac545

Browse files
annevkmoz-wptsync-bot
authored andcommitted
Bug 1920272 [wpt PR 48240] - Encoding: impact of GB18030-2022 on GBK, a=testonly
Automatic update from web-platform-tests Encoding: impact of GB18030-2022 on GBK See whatwg/encoding#336 for details. -- wpt-commits: 1ac8deee082ecfb5d3b6f9c56cf9d1688a2fc218 wpt-pr: 48240
1 parent a4c7472 commit a3ac545

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

testing/web-platform/tests/encoding/legacy-mb-schinese/gbk/gbk-decoder.any.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Additional tests can be found in ../gb18030/gb18030-decoder.any.js
2+
13
const gbkPointers = [
24
6432, 7533, 7536, 7672, 7673, 7674, 7675, 7676, 7677, 7678, 7679, 7680, 7681, 7682, 7683, 7684,
35
23766, 23770, 23771, 23772, 23773, 23774, 23776, 23777, 23778, 23779, 23780, 23781, 23782, 23784, 23785, 23786,

testing/web-platform/tests/encoding/legacy-mb-schinese/gbk/gbk-encoder.html

+39
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,43 @@
2323
encode("\u00A5", "%26%23165%3B", "legacy WebKit case 1");
2424
encode("\u22EF", "%26%238943%3B", "legacy WebKit case 2");
2525
encode("\u301C", "%26%2312316%3B", "legacy WebKit case 3");
26+
encode("\u{10FFFF}", "%26%231114111%3B", "U+10FFFF");
27+
28+
// GB18030-2022
29+
encode("\uFE10", "%A6%D9", "GB18030-2022 1");
30+
encode("\uFE12", "%A6%DA", "GB18030-2022 2");
31+
encode("\uFE11", "%A6%DB", "GB18030-2022 3");
32+
encode("\uFE13", "%A6%DC", "GB18030-2022 4");
33+
encode("\uFE14", "%A6%DD", "GB18030-2022 5");
34+
encode("\uFE15", "%A6%DE", "GB18030-2022 6");
35+
encode("\uFE16", "%A6%DF", "GB18030-2022 7");
36+
encode("\uFE17", "%A6%EC", "GB18030-2022 8");
37+
encode("\uFE18", "%A6%ED", "GB18030-2022 9");
38+
encode("\uFE19", "%A6%F3", "GB18030-2022 10");
39+
encode("\u9FB4", "%FEY", "GB18030-2022 11");
40+
encode("\u9FB5", "%FEa", "GB18030-2022 12");
41+
encode("\u9FB6", "%FEf", "GB18030-2022 13");
42+
encode("\u9FB7", "%FEg", "GB18030-2022 14");
43+
encode("\u9FB8", "%FEm", "GB18030-2022 15");
44+
encode("\u9FB9", "%FE~", "GB18030-2022 16");
45+
encode("\u9FBA", "%FE%90", "GB18030-2022 17");
46+
encode("\u9FBB", "%FE%A0", "GB18030-2022 18");
47+
encode("\uE78D", "%A6%D9", "GB18030-2022 19");
48+
encode("\uE78E", "%A6%DA", "GB18030-2022 20");
49+
encode("\uE78F", "%A6%DB", "GB18030-2022 21");
50+
encode("\uE790", "%A6%DC", "GB18030-2022 22");
51+
encode("\uE791", "%A6%DD", "GB18030-2022 23");
52+
encode("\uE792", "%A6%DE", "GB18030-2022 24");
53+
encode("\uE793", "%A6%DF", "GB18030-2022 25");
54+
encode("\uE794", "%A6%EC", "GB18030-2022 26");
55+
encode("\uE795", "%A6%ED", "GB18030-2022 27");
56+
encode("\uE796", "%A6%F3", "GB18030-2022 28");
57+
encode("\uE81E", "%FEY", "GB18030-2022 29");
58+
encode("\uE826", "%FEa", "GB18030-2022 30");
59+
encode("\uE82B", "%FEf", "GB18030-2022 31");
60+
encode("\uE82C", "%FEg", "GB18030-2022 32");
61+
encode("\uE832", "%FEm", "GB18030-2022 33");
62+
encode("\uE843", "%FE~", "GB18030-2022 34");
63+
encode("\uE854", "%FE%90", "GB18030-2022 35");
64+
encode("\uE864", "%FE%A0", "GB18030-2022 36");
2665
</script>

0 commit comments

Comments
 (0)