Validate the BCP47-ness of the language string passed to TrackBase::setLanguage()
[WebKit-https.git] / LayoutTests / media / media-source / only-bcp47-language-tags-accepted-as-valid-expected.txt
1 CONSOLE MESSAGE: line 176: The language 'a' is not a valid BCP 47 language tag.
2 CONSOLE MESSAGE: line 106: The language 'a' is not a valid BCP 47 language tag.
3 CONSOLE MESSAGE: line 176: The language 'a' is not a valid BCP 47 language tag.
4 CONSOLE MESSAGE: line 176: The language '1' is not a valid BCP 47 language tag.
5 CONSOLE MESSAGE: line 106: The language '1' is not a valid BCP 47 language tag.
6 CONSOLE MESSAGE: line 176: The language '1' is not a valid BCP 47 language tag.
7 CONSOLE MESSAGE: line 176: The language 'ab-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij' is not a valid BCP 47 language tag.
8 CONSOLE MESSAGE: line 106: The language 'ab-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij' is not a valid BCP 47 language tag.
9 CONSOLE MESSAGE: line 176: The language 'ab-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij' is not a valid BCP 47 language tag.
10 CONSOLE MESSAGE: line 176: The language '1a' is not a valid BCP 47 language tag.
11 CONSOLE MESSAGE: line 106: The language '1a' is not a valid BCP 47 language tag.
12 CONSOLE MESSAGE: line 176: The language '1a' is not a valid BCP 47 language tag.
13 CONSOLE MESSAGE: line 176: The language '-a' is not a valid BCP 47 language tag.
14 CONSOLE MESSAGE: line 106: The language '-a' is not a valid BCP 47 language tag.
15 CONSOLE MESSAGE: line 176: The language '-a' is not a valid BCP 47 language tag.
16 CONSOLE MESSAGE: line 176: The language 'a-' is not a valid BCP 47 language tag.
17 CONSOLE MESSAGE: line 106: The language 'a-' is not a valid BCP 47 language tag.
18 CONSOLE MESSAGE: line 176: The language 'a-' is not a valid BCP 47 language tag.
19 CONSOLE MESSAGE: line 176: The language 'a1' is not a valid BCP 47 language tag.
20 CONSOLE MESSAGE: line 106: The language 'a1' is not a valid BCP 47 language tag.
21 CONSOLE MESSAGE: line 176: The language 'a1' is not a valid BCP 47 language tag.
22 CONSOLE MESSAGE: line 176: The language 'aa1' is not a valid BCP 47 language tag.
23 CONSOLE MESSAGE: line 106: The language 'aa1' is not a valid BCP 47 language tag.
24 CONSOLE MESSAGE: line 176: The language 'aa1' is not a valid BCP 47 language tag.
25 CONSOLE MESSAGE: line 176: The language 'aaaa' is not a valid BCP 47 language tag.
26 CONSOLE MESSAGE: line 106: The language 'aaaa' is not a valid BCP 47 language tag.
27 CONSOLE MESSAGE: line 176: The language 'aaaa' is not a valid BCP 47 language tag.
28 CONSOLE MESSAGE: line 176: The language 'aaa1' is not a valid BCP 47 language tag.
29 CONSOLE MESSAGE: line 106: The language 'aaa1' is not a valid BCP 47 language tag.
30 CONSOLE MESSAGE: line 176: The language 'aaa1' is not a valid BCP 47 language tag.
31 CONSOLE MESSAGE: line 176: The language 'inv-alid-char space' is not a valid BCP 47 language tag.
32 CONSOLE MESSAGE: line 106: The language 'inv-alid-char space' is not a valid BCP 47 language tag.
33 CONSOLE MESSAGE: line 176: The language 'inv-alid-char space' is not a valid BCP 47 language tag.
34 CONSOLE MESSAGE: line 176: The language 'inv-alid-char–longDash' is not a valid BCP 47 language tag.
35 CONSOLE MESSAGE: line 106: The language 'inv-alid-char–longDash' is not a valid BCP 47 language tag.
36 CONSOLE MESSAGE: line 176: The language 'inv-alid-char–longDash' is not a valid BCP 47 language tag.
37 CONSOLE MESSAGE: line 176: The language 'inv-alid-char-PÃ¥lska' is not a valid BCP 47 language tag.
38 CONSOLE MESSAGE: line 106: The language 'inv-alid-char-PÃ¥lska' is not a valid BCP 47 language tag.
39 CONSOLE MESSAGE: line 176: The language 'inv-alid-char-PÃ¥lska' is not a valid BCP 47 language tag.
40 CONSOLE MESSAGE: line 176: The language 'inv-alid-char-*' is not a valid BCP 47 language tag.
41 CONSOLE MESSAGE: line 106: The language 'inv-alid-char-*' is not a valid BCP 47 language tag.
42 CONSOLE MESSAGE: line 176: The language 'inv-alid-char-*' is not a valid BCP 47 language tag.
43 CONSOLE MESSAGE: line 176: The language 'inv-alid-char-' is not a valid BCP 47 language tag.
44 CONSOLE MESSAGE: line 106: The language 'inv-alid-char-' is not a valid BCP 47 language tag.
45 CONSOLE MESSAGE: line 176: The language 'inv-alid-char-' is not a valid BCP 47 language tag.
46 Test that only BCP47 language tags are accepted as valid but still reflected.
47
48
49 RUN(video.src = URL.createObjectURL(source))
50 EVENT(sourceopen)
51 RUN(source.duration = loader.duration())
52 RUN(sourceBuffer = source.addSourceBuffer(loader.type()))
53 RUN(sourceBuffer.appendBuffer(loader.initSegment()))
54 EVENT(update)
55 Append a partial media segment.
56 RUN(sourceBuffer.appendBuffer(loader.mediaSegment(0).slice(0, loader.mediaSegment(0).byteLength / 2)))
57 EVENT(update)
58 EXPECTED (videoTrack.language == 'en-GB-oed') OK
59 EXPECTED (textTrack.track.language == 'en-GB-oed') OK
60 EXPECTED (audioTrack.language == 'en-GB-oed') OK
61 EXPECTED (videoTrack.language == 'i-ami') OK
62 EXPECTED (textTrack.track.language == 'i-ami') OK
63 EXPECTED (audioTrack.language == 'i-ami') OK
64 EXPECTED (videoTrack.language == 'i-bnn') OK
65 EXPECTED (textTrack.track.language == 'i-bnn') OK
66 EXPECTED (audioTrack.language == 'i-bnn') OK
67 EXPECTED (videoTrack.language == 'i-default') OK
68 EXPECTED (textTrack.track.language == 'i-default') OK
69 EXPECTED (audioTrack.language == 'i-default') OK
70 EXPECTED (videoTrack.language == 'i-enochian') OK
71 EXPECTED (textTrack.track.language == 'i-enochian') OK
72 EXPECTED (audioTrack.language == 'i-enochian') OK
73 EXPECTED (videoTrack.language == 'i-hak') OK
74 EXPECTED (textTrack.track.language == 'i-hak') OK
75 EXPECTED (audioTrack.language == 'i-hak') OK
76 EXPECTED (videoTrack.language == 'i-klingon') OK
77 EXPECTED (textTrack.track.language == 'i-klingon') OK
78 EXPECTED (audioTrack.language == 'i-klingon') OK
79 EXPECTED (videoTrack.language == 'i-lux') OK
80 EXPECTED (textTrack.track.language == 'i-lux') OK
81 EXPECTED (audioTrack.language == 'i-lux') OK
82 EXPECTED (videoTrack.language == 'i-mingo') OK
83 EXPECTED (textTrack.track.language == 'i-mingo') OK
84 EXPECTED (audioTrack.language == 'i-mingo') OK
85 EXPECTED (videoTrack.language == 'i-navajo') OK
86 EXPECTED (textTrack.track.language == 'i-navajo') OK
87 EXPECTED (audioTrack.language == 'i-navajo') OK
88 EXPECTED (videoTrack.language == 'i-pwn') OK
89 EXPECTED (textTrack.track.language == 'i-pwn') OK
90 EXPECTED (audioTrack.language == 'i-pwn') OK
91 EXPECTED (videoTrack.language == 'i-tao') OK
92 EXPECTED (textTrack.track.language == 'i-tao') OK
93 EXPECTED (audioTrack.language == 'i-tao') OK
94 EXPECTED (videoTrack.language == 'i-tay') OK
95 EXPECTED (textTrack.track.language == 'i-tay') OK
96 EXPECTED (audioTrack.language == 'i-tay') OK
97 EXPECTED (videoTrack.language == 'i-tsu') OK
98 EXPECTED (textTrack.track.language == 'i-tsu') OK
99 EXPECTED (audioTrack.language == 'i-tsu') OK
100 EXPECTED (videoTrack.language == 'sgn-BE-FR') OK
101 EXPECTED (textTrack.track.language == 'sgn-BE-FR') OK
102 EXPECTED (audioTrack.language == 'sgn-BE-FR') OK
103 EXPECTED (videoTrack.language == 'sgn-BE-NL') OK
104 EXPECTED (textTrack.track.language == 'sgn-BE-NL') OK
105 EXPECTED (audioTrack.language == 'sgn-BE-NL') OK
106 EXPECTED (videoTrack.language == 'sgn-CH-DE') OK
107 EXPECTED (textTrack.track.language == 'sgn-CH-DE') OK
108 EXPECTED (audioTrack.language == 'sgn-CH-DE') OK
109 EXPECTED (videoTrack.language == 'art-lojban') OK
110 EXPECTED (textTrack.track.language == 'art-lojban') OK
111 EXPECTED (audioTrack.language == 'art-lojban') OK
112 EXPECTED (videoTrack.language == 'cel-gaulish') OK
113 EXPECTED (textTrack.track.language == 'cel-gaulish') OK
114 EXPECTED (audioTrack.language == 'cel-gaulish') OK
115 EXPECTED (videoTrack.language == 'no-bok') OK
116 EXPECTED (textTrack.track.language == 'no-bok') OK
117 EXPECTED (audioTrack.language == 'no-bok') OK
118 EXPECTED (videoTrack.language == 'no-nyn') OK
119 EXPECTED (textTrack.track.language == 'no-nyn') OK
120 EXPECTED (audioTrack.language == 'no-nyn') OK
121 EXPECTED (videoTrack.language == 'zh-guoyu') OK
122 EXPECTED (textTrack.track.language == 'zh-guoyu') OK
123 EXPECTED (audioTrack.language == 'zh-guoyu') OK
124 EXPECTED (videoTrack.language == 'zh-hakka') OK
125 EXPECTED (textTrack.track.language == 'zh-hakka') OK
126 EXPECTED (audioTrack.language == 'zh-hakka') OK
127 EXPECTED (videoTrack.language == 'zh-min') OK
128 EXPECTED (textTrack.track.language == 'zh-min') OK
129 EXPECTED (audioTrack.language == 'zh-min') OK
130 EXPECTED (videoTrack.language == 'zh-min-nan') OK
131 EXPECTED (textTrack.track.language == 'zh-min-nan') OK
132 EXPECTED (audioTrack.language == 'zh-min-nan') OK
133 EXPECTED (videoTrack.language == 'zh-xiang') OK
134 EXPECTED (textTrack.track.language == 'zh-xiang') OK
135 EXPECTED (audioTrack.language == 'zh-xiang') OK
136 EXPECTED (videoTrack.language == 'de') OK
137 EXPECTED (textTrack.track.language == 'de') OK
138 EXPECTED (audioTrack.language == 'de') OK
139 EXPECTED (videoTrack.language == 'fr') OK
140 EXPECTED (textTrack.track.language == 'fr') OK
141 EXPECTED (audioTrack.language == 'fr') OK
142 EXPECTED (videoTrack.language == 'ja') OK
143 EXPECTED (textTrack.track.language == 'ja') OK
144 EXPECTED (audioTrack.language == 'ja') OK
145 EXPECTED (videoTrack.language == 'zh-Hant') OK
146 EXPECTED (textTrack.track.language == 'zh-Hant') OK
147 EXPECTED (audioTrack.language == 'zh-Hant') OK
148 EXPECTED (videoTrack.language == 'zh-Han') OK
149 EXPECTED (textTrack.track.language == 'zh-Han') OK
150 EXPECTED (audioTrack.language == 'zh-Han') OK
151 EXPECTED (videoTrack.language == 'sr-Cyrl') OK
152 EXPECTED (textTrack.track.language == 'sr-Cyrl') OK
153 EXPECTED (audioTrack.language == 'sr-Cyrl') OK
154 EXPECTED (videoTrack.language == 'sr-Latn') OK
155 EXPECTED (textTrack.track.language == 'sr-Latn') OK
156 EXPECTED (audioTrack.language == 'sr-Latn') OK
157 EXPECTED (videoTrack.language == 'zh-cmn-Hans-CN') OK
158 EXPECTED (textTrack.track.language == 'zh-cmn-Hans-CN') OK
159 EXPECTED (audioTrack.language == 'zh-cmn-Hans-CN') OK
160 EXPECTED (videoTrack.language == 'cmn-Hans-CN') OK
161 EXPECTED (textTrack.track.language == 'cmn-Hans-CN') OK
162 EXPECTED (audioTrack.language == 'cmn-Hans-CN') OK
163 EXPECTED (videoTrack.language == 'zh-yue-HK') OK
164 EXPECTED (textTrack.track.language == 'zh-yue-HK') OK
165 EXPECTED (audioTrack.language == 'zh-yue-HK') OK
166 EXPECTED (videoTrack.language == 'yue-HK') OK
167 EXPECTED (textTrack.track.language == 'yue-HK') OK
168 EXPECTED (audioTrack.language == 'yue-HK') OK
169 EXPECTED (videoTrack.language == 'zh-Hans-CN') OK
170 EXPECTED (textTrack.track.language == 'zh-Hans-CN') OK
171 EXPECTED (audioTrack.language == 'zh-Hans-CN') OK
172 EXPECTED (videoTrack.language == 'sr-Latn-RS') OK
173 EXPECTED (textTrack.track.language == 'sr-Latn-RS') OK
174 EXPECTED (audioTrack.language == 'sr-Latn-RS') OK
175 EXPECTED (videoTrack.language == 'sl-rozaj') OK
176 EXPECTED (textTrack.track.language == 'sl-rozaj') OK
177 EXPECTED (audioTrack.language == 'sl-rozaj') OK
178 EXPECTED (videoTrack.language == 'sl-rozaj-biske') OK
179 EXPECTED (textTrack.track.language == 'sl-rozaj-biske') OK
180 EXPECTED (audioTrack.language == 'sl-rozaj-biske') OK
181 EXPECTED (videoTrack.language == 'sl-nedis') OK
182 EXPECTED (textTrack.track.language == 'sl-nedis') OK
183 EXPECTED (audioTrack.language == 'sl-nedis') OK
184 EXPECTED (videoTrack.language == 'de-CH-1901') OK
185 EXPECTED (textTrack.track.language == 'de-CH-1901') OK
186 EXPECTED (audioTrack.language == 'de-CH-1901') OK
187 EXPECTED (videoTrack.language == 'sl-IT-nedis') OK
188 EXPECTED (textTrack.track.language == 'sl-IT-nedis') OK
189 EXPECTED (audioTrack.language == 'sl-IT-nedis') OK
190 EXPECTED (videoTrack.language == 'hy-Latn-IT-arevela') OK
191 EXPECTED (textTrack.track.language == 'hy-Latn-IT-arevela') OK
192 EXPECTED (audioTrack.language == 'hy-Latn-IT-arevela') OK
193 EXPECTED (videoTrack.language == 'en-US') OK
194 EXPECTED (textTrack.track.language == 'en-US') OK
195 EXPECTED (audioTrack.language == 'en-US') OK
196 EXPECTED (videoTrack.language == 'es-419') OK
197 EXPECTED (textTrack.track.language == 'es-419') OK
198 EXPECTED (audioTrack.language == 'es-419') OK
199 EXPECTED (videoTrack.language == 'de-CH-x-phonebk') OK
200 EXPECTED (textTrack.track.language == 'de-CH-x-phonebk') OK
201 EXPECTED (audioTrack.language == 'de-CH-x-phonebk') OK
202 EXPECTED (videoTrack.language == 'az-Arab-x-AZE-derbend') OK
203 EXPECTED (textTrack.track.language == 'az-Arab-x-AZE-derbend') OK
204 EXPECTED (audioTrack.language == 'az-Arab-x-AZE-derbend') OK
205 EXPECTED (videoTrack.language == 'x-whatever') OK
206 EXPECTED (textTrack.track.language == 'x-whatever') OK
207 EXPECTED (audioTrack.language == 'x-whatever') OK
208 EXPECTED (videoTrack.language == 'qaa-Qaaa-QM-x-southern') OK
209 EXPECTED (textTrack.track.language == 'qaa-Qaaa-QM-x-southern') OK
210 EXPECTED (audioTrack.language == 'qaa-Qaaa-QM-x-southern') OK
211 EXPECTED (videoTrack.language == 'de-Qaaa') OK
212 EXPECTED (textTrack.track.language == 'de-Qaaa') OK
213 EXPECTED (audioTrack.language == 'de-Qaaa') OK
214 EXPECTED (videoTrack.language == 'sr-Latn-QM') OK
215 EXPECTED (textTrack.track.language == 'sr-Latn-QM') OK
216 EXPECTED (audioTrack.language == 'sr-Latn-QM') OK
217 EXPECTED (videoTrack.language == 'sr-Qaaa-RS') OK
218 EXPECTED (textTrack.track.language == 'sr-Qaaa-RS') OK
219 EXPECTED (audioTrack.language == 'sr-Qaaa-RS') OK
220 EXPECTED (videoTrack.language == 'zh-Hant-CN-x-private1-private2') OK
221 EXPECTED (textTrack.track.language == 'zh-Hant-CN-x-private1-private2') OK
222 EXPECTED (audioTrack.language == 'zh-Hant-CN-x-private1-private2') OK
223 EXPECTED (videoTrack.language == 'de-DE') OK
224 EXPECTED (textTrack.track.language == 'de-DE') OK
225 EXPECTED (audioTrack.language == 'de-DE') OK
226 EXPECTED (videoTrack.language == 'de-de') OK
227 EXPECTED (textTrack.track.language == 'de-de') OK
228 EXPECTED (audioTrack.language == 'de-de') OK
229 EXPECTED (videoTrack.language == 'de-Latn-DE') OK
230 EXPECTED (textTrack.track.language == 'de-Latn-DE') OK
231 EXPECTED (audioTrack.language == 'de-Latn-DE') OK
232 EXPECTED (videoTrack.language == 'de-Latf-DE') OK
233 EXPECTED (textTrack.track.language == 'de-Latf-DE') OK
234 EXPECTED (audioTrack.language == 'de-Latf-DE') OK
235 EXPECTED (videoTrack.language == 'de-DE-x-goethe') OK
236 EXPECTED (textTrack.track.language == 'de-DE-x-goethe') OK
237 EXPECTED (audioTrack.language == 'de-DE-x-goethe') OK
238 EXPECTED (videoTrack.language == 'de-Latn-DE-1996') OK
239 EXPECTED (textTrack.track.language == 'de-Latn-DE-1996') OK
240 EXPECTED (audioTrack.language == 'de-Latn-DE-1996') OK
241 EXPECTED (videoTrack.language == 'de-Deva-DE') OK
242 EXPECTED (textTrack.track.language == 'de-Deva-DE') OK
243 EXPECTED (audioTrack.language == 'de-Deva-DE') OK
244 EXPECTED (videoTrack.language == 'en-US-u-islamcal') OK
245 EXPECTED (textTrack.track.language == 'en-US-u-islamcal') OK
246 EXPECTED (audioTrack.language == 'en-US-u-islamcal') OK
247 EXPECTED (videoTrack.language == 'zh-CN-a-myext-x-private') OK
248 EXPECTED (textTrack.track.language == 'zh-CN-a-myext-x-private') OK
249 EXPECTED (audioTrack.language == 'zh-CN-a-myext-x-private') OK
250 EXPECTED (videoTrack.language == 'en-a-myext-b-another') OK
251 EXPECTED (textTrack.track.language == 'en-a-myext-b-another') OK
252 EXPECTED (audioTrack.language == 'en-a-myext-b-another') OK
253 EXPECTED (videoTrack.language == 'zh-Latn-CN-variant1-a-extend1-x-wadegile-private1') OK
254 EXPECTED (textTrack.track.language == 'zh-Latn-CN-variant1-a-extend1-x-wadegile-private1') OK
255 EXPECTED (audioTrack.language == 'zh-Latn-CN-variant1-a-extend1-x-wadegile-private1') OK
256 EXPECTED (videoTrack.language == 'a') OK
257 EXPECTED (textTrack.track.language == 'a') OK
258 EXPECTED (audioTrack.language == 'a') OK
259 EXPECTED (videoTrack.language == '1') OK
260 EXPECTED (textTrack.track.language == '1') OK
261 EXPECTED (audioTrack.language == '1') OK
262 EXPECTED (videoTrack.language == 'ab-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij') OK
263 EXPECTED (textTrack.track.language == 'ab-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij') OK
264 EXPECTED (audioTrack.language == 'ab-abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij') OK
265 EXPECTED (videoTrack.language == '1a') OK
266 EXPECTED (textTrack.track.language == '1a') OK
267 EXPECTED (audioTrack.language == '1a') OK
268 EXPECTED (videoTrack.language == '-a') OK
269 EXPECTED (textTrack.track.language == '-a') OK
270 EXPECTED (audioTrack.language == '-a') OK
271 EXPECTED (videoTrack.language == 'a-') OK
272 EXPECTED (textTrack.track.language == 'a-') OK
273 EXPECTED (audioTrack.language == 'a-') OK
274 EXPECTED (videoTrack.language == 'a1') OK
275 EXPECTED (textTrack.track.language == 'a1') OK
276 EXPECTED (audioTrack.language == 'a1') OK
277 EXPECTED (videoTrack.language == 'aa1') OK
278 EXPECTED (textTrack.track.language == 'aa1') OK
279 EXPECTED (audioTrack.language == 'aa1') OK
280 EXPECTED (videoTrack.language == 'aaaa') OK
281 EXPECTED (textTrack.track.language == 'aaaa') OK
282 EXPECTED (audioTrack.language == 'aaaa') OK
283 EXPECTED (videoTrack.language == 'aaa1') OK
284 EXPECTED (textTrack.track.language == 'aaa1') OK
285 EXPECTED (audioTrack.language == 'aaa1') OK
286 EXPECTED (videoTrack.language == 'inv-alid-char space') OK
287 EXPECTED (textTrack.track.language == 'inv-alid-char space') OK
288 EXPECTED (audioTrack.language == 'inv-alid-char space') OK
289 EXPECTED (videoTrack.language == 'inv-alid-char–longDash') OK
290 EXPECTED (textTrack.track.language == 'inv-alid-char–longDash') OK
291 EXPECTED (audioTrack.language == 'inv-alid-char–longDash') OK
292 EXPECTED (videoTrack.language == 'inv-alid-char-PÃ¥lska') OK
293 EXPECTED (textTrack.track.language == 'inv-alid-char-PÃ¥lska') OK
294 EXPECTED (audioTrack.language == 'inv-alid-char-PÃ¥lska') OK
295 EXPECTED (videoTrack.language == 'inv-alid-char-*') OK
296 EXPECTED (textTrack.track.language == 'inv-alid-char-*') OK
297 EXPECTED (audioTrack.language == 'inv-alid-char-*') OK
298 EXPECTED (videoTrack.language == 'inv-alid-char-') OK
299 EXPECTED (textTrack.track.language == 'inv-alid-char-') OK
300 EXPECTED (audioTrack.language == 'inv-alid-char-') OK
301 END OF TEST
302