Bug 1507796 [wpt PR 14090] - Encoding/XMLHttpRequest: default is UTF-8, a=testonly
authorAnne van Kesteren <annevk@annevk.nl>
Mon, 19 Nov 2018 18:46:42 +0000
changeset 504011 60b55f9c6aed47b143ee8b7578020beda7abe2d9
parent 504010 fd69b29dc52dcc0f5d931147c7b36e3cc74a16bc
child 504012 7378efd716566160646f83fc0b3da1fbbe25972c
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1507796, 14090, 14082
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
testing/web-platform/tests/encoding/unsupported-encodings.any.js
--- a/testing/web-platform/tests/encoding/unsupported-encodings.any.js
+++ b/testing/web-platform/tests/encoding/unsupported-encodings.any.js
@@ -10,23 +10,23 @@
 // UTF-32 will be detected as UTF-16LE if leading BOM, or windows-1252 otherwise.
 ['UTF-32', 'utf-32', 'UTF-32LE', 'utf-32le'].forEach(label => {
   decode_test(label,
               '%FF%FE%00%00%41%00%00%00%42%00%00%00',
               'U+0000/U+0041/U+0000/U+0042/U+0000',
               `${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`);
 });