Skip to content

Commit

Permalink
test: update WPT Status encoding.json
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jun 16, 2022
1 parent ef24b9b commit 5057cac
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 23 deletions.
76 changes: 53 additions & 23 deletions test/wpt/status/encoding.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"$version": 1,
"api-basics.any.js": {
"requires": ["small-icu"]
},
"api-invalid-label.any.js": {
"skip": "location is not defined"
},
"textdecoder-fatal-streaming.any.js": {
"requires": ["small-icu"]
},
Expand All @@ -16,48 +12,85 @@
"requires": ["small-icu"]
},
"textdecoder-streaming.any.js": {
"requires": ["small-icu"],
"fail": "WebAssembly.Memory does not support shared:true"
"requires": ["small-icu"]
},
"textdecoder-utf16-surrogates.any.js": {
"requires": ["small-icu"]
},
"iso-2022-jp-decoder.any.js": {
"requires": ["full-icu"],
"fail": "iso-2022-jp decoder state handling bug: https://encoding.spec.whatwg.org/#iso-2022-jp-decoder"
"fail": {
"note": "iso-2022-jp decoder state handling bug: https://encoding.spec.whatwg.org/#iso-2022-jp-decoder",
"expected": [
"assert_equals: expected \"\\ufffd$\" but got \"\\ufffd\"",
"assert_equals: expected \"\\ufffd\\ufffd\\ufffd\\ufffd\" but got \"\\r\\ufffd\\ufffd\\x10\"",
"assert_equals: expected \"P\\ufffd$\" but got \"P\\ufffd\""
]
}
},
"textdecoder-byte-order-marks.any.js": {
"requires": ["small-icu"]
},
"textdecoder-fatal-single-byte.any.js": {
"requires": ["full-icu"],
"fail": "The iso-8859-16 encoding is not supported"
"fail": {
"expected": [
"The \"ISO-8859-16\" encoding is not supported",
"assert_throws_js: function \"function() {\n new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array([i]));\n }\" did not throw",
"The encoded data was not valid for encoding windows-1255"
]
}
},
"textdecoder-labels.any.js": {
"requires": ["full-icu"],
"fail": "The iso-8859-16 encoding is not supported"
"fail": {
"expected": [
"The \"unicode11utf8\" encoding is not supported",
"The \"unicode20utf8\" encoding is not supported",
"The \"x-unicode20utf8\" encoding is not supported",
"The \"iso-8859-16\" encoding is not supported",
"The \"unicodefffe\" encoding is not supported",
"The \"csunicode\" encoding is not supported",
"The \"iso-10646-ucs-2\" encoding is not supported",
"The \"ucs-2\" encoding is not supported",
"The \"unicode\" encoding is not supported",
"The \"unicodefeff\" encoding is not supported",
"The \"x-user-defined\" encoding is not supported"
]
}
},
"textencoder-constructor-non-utf.any.js": {
"requires": ["full-icu"],
"fail": "The iso-8859-16 encoding is not supported"
"fail": {
"expected": [
"The \"ISO-8859-16\" encoding is not supported",
"The \"x-user-defined\" encoding is not supported"
]
}
},
"idlharness.any.js": {
"fail": "No implementation of TextDecoderStream and TextEncoderStream"
"fail": {
"expected": [
"promise_test: Unhandled rejection with value: object \"Unexpected global object\""
]
}
},
"replacement-encodings.any.js": {
"skip": "decoding-helpers.js needs XMLHttpRequest"
"fail": {
"expected": [
"promise_test: Unhandled rejection with value: object \"ReferenceError: XMLHttpRequest is not defined\""
]
}
},
"unsupported-encodings.any.js": {
"skip": "decoding-helpers.js needs XMLHttpRequest"
"fail": {
"expected": [
"promise_test: Unhandled rejection with value: object \"ReferenceError: XMLHttpRequest is not defined\""
]
}
},
"streams/*.js": {
"fail": "No implementation of TextDecoderStream and TextEncoderStream"
},
"encodeInto.any.js": {
"fail": "WebAssembly.Memory does not support shared:true"
},
"textdecoder-copy.any.js": {
"fail": "WebAssembly.Memory does not support shared:true"
"skip": "No implementation of TextDecoderStream and TextEncoderStream"
},
"legacy-mb-schinese/gbk/gbk-decoder.any.js": {
"requires": ["full-icu"],
Expand All @@ -66,8 +99,5 @@
"legacy-mb-schinese/gb18030/gb18030-decoder.any.js": {
"requires": ["full-icu"],
"skip": "The gb18030 encoding is not supported"
},
"textdecoder-arguments.any.js": {
"fail": "Does not support flushing an incomplete sequence"
}
}
4 changes: 4 additions & 0 deletions test/wpt/test-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ runner.setInitScript(`
global.MessageChannel = MessageChannel;
`);

runner.setInitScript(`
global.location = {};
`);

runner.runJsTests();

0 comments on commit 5057cac

Please sign in to comment.