Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 286acaa

Browse filesBrowse files
anonrigjuanarbol
authored andcommitted
test: update encoding wpt to latest
PR-URL: #45850 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent cade2fc commit 286acaa
Copy full SHA for 286acaa

File tree

Expand file treeCollapse file tree

4 files changed

+183
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+183
-2
lines changed
Open diff view settings
Collapse file

‎test/fixtures/wpt/README.md‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/README.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Last update:
1414
- console: https://github.com/web-platform-tests/wpt/tree/767ae35464/console
1515
- dom/abort: https://github.com/web-platform-tests/wpt/tree/8fadb38120/dom/abort
1616
- dom/events: https://github.com/web-platform-tests/wpt/tree/f8821adb28/dom/events
17-
- encoding: https://github.com/web-platform-tests/wpt/tree/c1b24fce6e/encoding
17+
- encoding: https://github.com/web-platform-tests/wpt/tree/779d175c40/encoding
1818
- fetch/data-urls/resources: https://github.com/web-platform-tests/wpt/tree/7c79d998ff/fetch/data-urls/resources
1919
- FileAPI: https://github.com/web-platform-tests/wpt/tree/3b279420d4/FileAPI
2020
- FileAPI/file: https://github.com/web-platform-tests/wpt/tree/c01f637cca/FileAPI/file
Collapse file
+178Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
// This list was inspired by these sources:
2+
// - https://annevankesteren.nl/2010/8-bit-labels
3+
// - http://l0.cm/encodings/table/
4+
5+
[
6+
"437",
7+
"adobe-standard-encoding",
8+
"armscii-8",
9+
"bocu-1",
10+
"cesu-8",
11+
"cp1025",
12+
"cp437",
13+
"cp737",
14+
"cp851",
15+
"cp858",
16+
"cp862",
17+
"cp864",
18+
"cp869",
19+
"cp875",
20+
"cp950",
21+
"csiso103t618bit",
22+
"csiso111ecmacyrillic",
23+
"cspc8codepage437",
24+
"csviscii",
25+
"dos-720",
26+
"dos-862",
27+
"ecma-cyrillic",
28+
"euc-tw",
29+
"german",
30+
"geostd8",
31+
"hp-roman8",
32+
"ibm-thai",
33+
"ibm00858",
34+
"ibm00924",
35+
"ibm01047",
36+
"ibm01140",
37+
"ibm01141",
38+
"ibm01142",
39+
"ibm01143",
40+
"ibm01144",
41+
"ibm01145",
42+
"ibm01146",
43+
"ibm01147",
44+
"ibm01148",
45+
"ibm01149",
46+
"ibm037",
47+
"ibm1026",
48+
"ibm1047",
49+
"ibm273",
50+
"ibm277",
51+
"ibm278",
52+
"ibm280",
53+
"ibm284",
54+
"ibm285",
55+
"ibm290",
56+
"ibm297",
57+
"ibm367",
58+
"ibm420",
59+
"ibm423",
60+
"ibm424",
61+
"ibm437",
62+
"ibm500",
63+
"ibm737",
64+
"ibm775",
65+
"ibm850",
66+
"ibm852",
67+
"ibm855",
68+
"ibm857",
69+
"ibm860",
70+
"ibm861",
71+
"ibm862",
72+
"ibm863",
73+
"ibm864",
74+
"ibm864i",
75+
"ibm865",
76+
"ibm868",
77+
"ibm869",
78+
"ibm870",
79+
"ibm871",
80+
"ibm880",
81+
"ibm905",
82+
"ibm918",
83+
"iso-2022-jp-1",
84+
"iso-2022-jp-2",
85+
"iso-2022-jp-3",
86+
"iso-8859-8 visual",
87+
"jis_c6226-1978",
88+
"jis_x0208-1983",
89+
"jis_x0208-1990",
90+
"jis_x0212-1990",
91+
"johab",
92+
"latin9",
93+
"norwegian",
94+
"sami-ws2",
95+
"scsu",
96+
"shift_jis_x0213-2000",
97+
"swedish",
98+
"tcvn",
99+
"tis-620-2533",
100+
"utf-7",
101+
"utf-32",
102+
"viscii",
103+
"windows-936-2000",
104+
"windows-sami-2",
105+
"ws2",
106+
"x-chinese-cns",
107+
"x-chinese-eten",
108+
"x-cp20001",
109+
"x-cp20003",
110+
"x-cp20004",
111+
"x-cp20005",
112+
"x-cp20261",
113+
"x-cp20269",
114+
"x-cp20936",
115+
"x-cp20949",
116+
"x-cp21027",
117+
"x-cp50227",
118+
"x-cp50229",
119+
"x-ebcdic-koreanextended",
120+
"x-europa",
121+
"x-ia5",
122+
"x-ia5-german",
123+
"x-ia5-norwegian",
124+
"x-ia5-swedish",
125+
"x-iscii-as",
126+
"x-iscii-be",
127+
"x-iscii-de",
128+
"x-iscii-gu",
129+
"x-iscii-ka",
130+
"x-iscii-ma",
131+
"x-iscii-or",
132+
"x-iscii-pa",
133+
"x-iscii-t",
134+
"x-iscii-ta",
135+
"x-iscii-te",
136+
"x-mac-arabic",
137+
"x-mac-ce",
138+
"x-mac-centraleurroman",
139+
"x-mac-chinesesimp",
140+
"x-mac-chinesetrad",
141+
"x-mac-croatian",
142+
"x-mac-devanagari",
143+
"x-mac-dingbats",
144+
"x-mac-farsi",
145+
"x-mac-greek",
146+
"x-mac-gujarati",
147+
"x-mac-gurmukhi",
148+
"x-mac-hebrew",
149+
"x-mac-icelandic",
150+
"x-mac-japanese",
151+
"x-mac-korean",
152+
"x-mac-roman-latin1",
153+
"x-mac-romanian",
154+
"x-mac-symbol",
155+
"x-mac-thai",
156+
"x-mac-tibetan",
157+
"x-mac-turkish",
158+
"x-mac-vt100",
159+
"x-nextstep",
160+
"x-vps",
161+
"_autodetect",
162+
"_autodetect_all",
163+
"_autodetect_kr"
164+
].forEach(label => {
165+
async_test(t => {
166+
const frame = document.createElement("iframe");
167+
t.add_cleanup(() => {
168+
frame.remove();
169+
});
170+
frame.src = "resources/text-plain-charset.py?label=" + label;
171+
frame.onload = t.step_func_done(() => {
172+
// If we ever change this default this needs adjusting accordingly.
173+
assert_equals(frame.contentDocument.characterSet, "windows-1252");
174+
assert_equals(frame.contentDocument.inputEncoding, "windows-1252");
175+
});
176+
document.body.append(frame);
177+
}, `${label} is not supported by the Encoding Standard`);
178+
});
Collapse file

‎test/fixtures/wpt/versions.json‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/versions.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"path": "dom/events"
1717
},
1818
"encoding": {
19-
"commit": "c1b24fce6e625c1b79124a58f27bf9adce02d5d7",
19+
"commit": "779d175c40efcb8f2c9512bebe25ffbeda485708",
2020
"path": "encoding"
2121
},
2222
"fetch/data-urls/resources": {
Collapse file

‎test/wpt/status/encoding.json‎

Copy file name to clipboardExpand all lines: test/wpt/status/encoding.json
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,8 @@
9595
},
9696
"textdecoder-eof.any.js": {
9797
"requires": ["small-icu"]
98+
},
99+
"unsupported-labels.window.js": {
100+
"skip": "document is not defined"
98101
}
99102
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.