summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs4
-rw-r--r--cli/tests/unit/text_encoding_test.ts11
-rw-r--r--cli/tests/wpt.jsonc17
3 files changed, 6 insertions, 26 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 16d3a210c..40a23bcfa 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -5306,7 +5306,9 @@ fn web_platform_tests() {
});
let testharness_path = util::wpt_path().join("resources/testharness.js");
- let testharness_text = std::fs::read_to_string(&testharness_path).unwrap();
+ let testharness_text = std::fs::read_to_string(&testharness_path)
+ .unwrap()
+ .replace("output:true", "output:false");
let testharnessreporter_path =
util::tests_path().join("wpt_testharnessconsolereporter.js");
let testharnessreporter_text =
diff --git a/cli/tests/unit/text_encoding_test.ts b/cli/tests/unit/text_encoding_test.ts
index de6822bf4..58905157a 100644
--- a/cli/tests/unit/text_encoding_test.ts
+++ b/cli/tests/unit/text_encoding_test.ts
@@ -103,17 +103,6 @@ unitTest(function textDecoderErrorEncoding(): void {
assert(didThrow);
});
-unitTest(function textDecoderHandlesNotFoundInternalDecoder() {
- let didThrow = false;
- try {
- new TextDecoder("gbk");
- } catch (e) {
- didThrow = true;
- assert(e instanceof RangeError);
- }
- assert(didThrow);
-});
-
unitTest(function textEncoder(): void {
const fixture = "𝓽𝓮𝔁𝓽";
const encoder = new TextEncoder();
diff --git a/cli/tests/wpt.jsonc b/cli/tests/wpt.jsonc
index 7c636b68c..2f9573875 100644
--- a/cli/tests/wpt.jsonc
+++ b/cli/tests/wpt.jsonc
@@ -90,16 +90,6 @@
{
"name": "textdecoder-labels",
"expectFail": [
- "chinese => GBK",
- "csgb2312 => GBK",
- "csiso58gb231280 => GBK",
- "gb2312 => GBK",
- "gb_2312 => GBK",
- "gb_2312-80 => GBK",
- "gbk => GBK",
- "iso-ir-58 => GBK",
- "x-gbk => GBK",
- "gb18030 => gb18030",
"cseucpkdfmtjapanese => EUC-JP",
"euc-jp => EUC-JP",
"x-euc-jp => EUC-JP",
@@ -132,8 +122,6 @@
{
"name": "textencoder-constructor-non-utf",
"expectFail": [
- "Encoding argument supported for decode: GBK",
- "Encoding argument supported for decode: gb18030",
"Encoding argument supported for decode: EUC-JP",
"Encoding argument supported for decode: ISO-2022-JP",
"Encoding argument supported for decode: Shift_JIS",
@@ -141,7 +129,8 @@
"Encoding argument supported for decode: x-user-defined"
]
},
- "textencoder-utf16-surrogates"
+ "textencoder-utf16-surrogates",
+ "legacy-mb-schinese"
// TODO(lucacasonato): uses XMLHttpRequest unnecessarily. should be fixed upstream before enabling
// "unsupported-encodings",
],
@@ -236,7 +225,7 @@
"console-namespace-object-class-string",
"console-tests-historical"
],
- "WebCryptoApi": ["getRandomValues"]
+ "WebCryptoApi": ["getRandomValues"],
"WebIDL": [
"ecmascript-binding/es-exceptions/DOMException-constants",
"ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype",