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:
Anne van Kesteren 2018-11-19 18:46:42 +00:00 коммит произвёл James Graham
Родитель a67c230e28
Коммит 365b3879ac
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -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`);
});