зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1507796 [wpt PR 14090] - Encoding/XMLHttpRequest: default is UTF-8, a=testonly
Automatic update from web-platform-testsEncoding/XMLHttpRequest: default is UTF-8 Fixes #14082. -- wpt-commits: a65bfa9d0c9517103caeb19eb0724eab75e2cacb wpt-pr: 14090
This commit is contained in:
Родитель
a67c230e28
Коммит
365b3879ac
|
@ -15,18 +15,18 @@
|
|||
`${label} with BOM should decode as UTF-16LE`);
|
||||
|
||||
decode_test(label,
|
||||
'%41%00%00%00%42%00%00%00',
|
||||
'U+0041/U+0000/U+0000/U+0000/U+0042/U+0000/U+0000/U+0000',
|
||||
`${label} with no BOM should decode as windows-1252`);;
|
||||
'%41%00%00%00%42%00%00%C2%80',
|
||||
'U+0041/U+0000/U+0000/U+0000/U+0042/U+0000/U+0000/U+0080',
|
||||
`${label} with no BOM should decode as UTF-8`);;
|
||||
});
|
||||
['UTF-32be', 'utf-32be'].forEach(label => {
|
||||
decode_test(label,
|
||||
'%00%00%00%41%00%00%00%42',
|
||||
'U+0000/U+0000/U+0000/U+0041/U+0000/U+0000/U+0000/U+0042',
|
||||
`${label} with no BOM should decode as windows-1252`);
|
||||
'%00%00%00%41%00%00%00%42%C2%80',
|
||||
'U+0000/U+0000/U+0000/U+0041/U+0000/U+0000/U+0000/U+0042/U+0080',
|
||||
`${label} with no BOM should decode as UTF-8`);
|
||||
|
||||
decode_test(label,
|
||||
'%00%00%FE%FF%00%00%00%41%00%00%00%42',
|
||||
'U+0000/U+0000/U+00FE/U+00FF/U+0000/U+0000/U+0000/U+0041/U+0000/U+0000/U+0000/U+0042',
|
||||
`${label} with BOM should decode as windows-1252`);
|
||||
'%00%00%FE%FF%00%00%00%41%00%C2%80%42',
|
||||
'U+0000/U+0000/U+FFFD/U+FFFD/U+0000/U+0000/U+0000/U+0041/U+0000/U+0080/U+0042',
|
||||
`${label} with BOM should decode as UTF-8`);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче