summaryrefslogtreecommitdiff
path: root/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-01-02 22:47:06 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2019-01-10 19:55:00 +0800
commitdce2f3ed93ffd3a6374a4e578f686343494519ad (patch)
treee31399c9c1cb61e852e128ce0bbf02b8a3c5f28e /test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js
parent16dfa0f3097d9d30632e257ba588dce4b555d244 (diff)
downloadandroid-node-v8-dce2f3ed93ffd3a6374a4e578f686343494519ad.tar.gz
android-node-v8-dce2f3ed93ffd3a6374a4e578f686343494519ad.tar.bz2
android-node-v8-dce2f3ed93ffd3a6374a4e578f686343494519ad.zip
test: remove duplicate encoding tests in favor of WPT
PR-URL: https://github.com/nodejs/node/pull/25321 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js')
-rw-r--r--test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js b/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js
index 3af83e01b0..bba10fbd22 100644
--- a/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js
+++ b/test/parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js
@@ -8,8 +8,6 @@ const common = require('../common');
if (!common.hasIntl)
common.skip('missing Intl');
-const assert = require('assert');
-
const bad = [
{
encoding: 'utf-16le',
@@ -44,11 +42,6 @@ const bad = [
];
bad.forEach((t) => {
- // TODO(joyeecheung): remove this when WPT is ported
- assert.strictEqual(
- new TextDecoder(t.encoding).decode(new Uint8Array(t.input)),
- t.expected);
-
common.expectsError(
() => {
new TextDecoder(t.encoding, { fatal: true })