mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 89ad54bd0d498c8209ec80407f5758566f91e82f
This commit is contained in:
parent
34bf312e0c
commit
1eb76da73c
27 changed files with 740 additions and 126 deletions
|
@ -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`);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue