diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-01-02 22:47:06 +0800 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2019-01-10 19:55:00 +0800 |
commit | dce2f3ed93ffd3a6374a4e578f686343494519ad (patch) | |
tree | e31399c9c1cb61e852e128ce0bbf02b8a3c5f28e /test/parallel/test-whatwg-encoding-custom-fatal-streaming.js | |
parent | 16dfa0f3097d9d30632e257ba588dce4b555d244 (diff) | |
download | android-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-fatal-streaming.js')
-rw-r--r-- | test/parallel/test-whatwg-encoding-custom-fatal-streaming.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/parallel/test-whatwg-encoding-custom-fatal-streaming.js b/test/parallel/test-whatwg-encoding-custom-fatal-streaming.js index d119987487..50e054c08c 100644 --- a/test/parallel/test-whatwg-encoding-custom-fatal-streaming.js +++ b/test/parallel/test-whatwg-encoding-custom-fatal-streaming.js @@ -8,8 +8,6 @@ const common = require('../common'); if (!common.hasIntl) common.skip('missing Intl'); -const assert = require('assert'); - { [ { encoding: 'utf-8', sequence: [0xC0] }, @@ -28,12 +26,6 @@ const assert = require('assert'); `The encoded data was not valid for encoding ${testCase.encoding}` } ); - - // TODO(joyeecheung): remove this when WPT is ported - assert.strictEqual( - new TextDecoder(testCase.encoding).decode(data), - '\uFFFD' - ); }); } @@ -42,10 +34,6 @@ const assert = require('assert'); const odd = new Uint8Array([0x00]); const even = new Uint8Array([0x00, 0x00]); - // TODO(joyeecheung): remove this when WPT is ported - assert.strictEqual(decoder.decode(odd, { stream: true }), ''); - assert.strictEqual(decoder.decode(odd), '\u0000'); - common.expectsError( () => { decoder.decode(even, { stream: true }); @@ -69,8 +57,4 @@ const assert = require('assert'); 'The encoded data was not valid for encoding utf-16le' } ); - - // TODO(joyeecheung): remove this when WPT is ported - assert.strictEqual(decoder.decode(even, { stream: true }), '\u0000'); - assert.strictEqual(decoder.decode(even), '\u0000'); } |