Update web-platform-tests to revision 89ad54bd0d498c8209ec80407f5758566f91e82f

This commit is contained in:
WPT Sync Bot 2018-11-17 20:32:56 -05:00
parent 34bf312e0c
commit 1eb76da73c
27 changed files with 740 additions and 126 deletions

View file

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