/third_party/node/test/parallel/ |
D | test-whatwg-encoding-custom-textdecoder.js | 17 assert(TextDecoder); 22 const dec = new TextDecoder(i); 29 const dec = new TextDecoder(i); 40 const dec = new TextDecoder(i, { ignoreBOM: true }); 46 const dec = new TextDecoder(i, { ignoreBOM: true }); 58 () => { new TextDecoder(fakeEncoding); }, 70 const dec = new TextDecoder(i, { fatal: true }); 81 const dec = new TextDecoder(i, { fatal: true }); 87 () => new TextDecoder('utf-8', { fatal: true }), 97 const dec = new TextDecoder(undefined, null); [all …]
|
D | test-whatwg-encoding-custom-api-basics.js | 12 new TextDecoder(encoding).decode(new Uint8Array(bytes)), 15 new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), 36 new TextDecoder(encoding).decode(new Uint8Array(bytes)), 39 new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer),
|
D | test-whatwg-encoding-custom-textdecoder-api-invalid-label.js | 18 () => new TextDecoder(`${ws}${i}`), 26 () => new TextDecoder(`${i}${ws}`), 34 () => new TextDecoder(`${ws}${i}${ws}`),
|
D | test-whatwg-encoding-custom-textdecoder-ignorebom.js | 23 let decoder = new TextDecoder(testCase.encoding, { ignoreBOM: true }); 26 decoder = new TextDecoder(testCase.encoding, { ignoreBOM: false }); 28 decoder = new TextDecoder(testCase.encoding);
|
D | test-global-encoder.js | 7 strictEqual(TextDecoder, util.TextDecoder);
|
D | test-whatwg-encoding-custom-fatal-streaming.js | 21 const decoder = new TextDecoder(testCase.encoding, { fatal: true }); 34 const decoder = new TextDecoder('utf-16le', { fatal: true });
|
D | test-whatwg-webstreams-adapters-to-streamduplex.js | 77 const dc = new TextDecoder(); 102 const dc = new TextDecoder(); 121 const dc = new TextDecoder();
|
D | test-filehandle-readablestream.js | 18 const dec = new TextDecoder(); 93 const dec = new TextDecoder();
|
D | test-whatwg-encoding-custom-textdecoder-invalid-arg.js | 13 new TextDecoder(undefined, null).decode(invalidInputType);
|
/third_party/node/test/fixtures/wpt/encoding/ |
D | textdecoder-eof.any.js | 3 assert_equals(new TextDecoder().decode(new Uint8Array([0xF0])), "\uFFFD"); 4 assert_equals(new TextDecoder().decode(new Uint8Array([0xF0, 0x9F])), "\uFFFD"); 5 assert_equals(new TextDecoder().decode(new Uint8Array([0xF0, 0x9F, 0x92])), "\uFFFD"); 8 assert_equals(new TextDecoder().decode(new Uint8Array([0xF0, 0x9F, 0x41])), "\uFFFDA"); 9 assert_equals(new TextDecoder().decode(new Uint8Array([0xF0, 0x41, 0x42])), "\uFFFDAB"); 10 assert_equals(new TextDecoder().decode(new Uint8Array([0xF0, 0x41, 0xF0])), "\uFFFDA\uFFFD"); 11 assert_equals(new TextDecoder().decode(new Uint8Array([0xF0, 0x8F, 0x92])), "\uFFFD\uFFFD\uFFFD"); 15 const decoder = new TextDecoder();
|
D | textdecoder-ignorebom.any.js | 12 var decoder = new TextDecoder(testCase.encoding, {ignoreBOM: true}); 23 decoder = new TextDecoder(testCase.encoding, {ignoreBOM: false}); 33 decoder = new TextDecoder(testCase.encoding); 46 …assert_true('ignoreBOM' in new TextDecoder(), 'The ignoreBOM attribute should exist on TextDecoder… 47 …assert_equals(typeof new TextDecoder().ignoreBOM, 'boolean', 'The type of the ignoreBOM attribute… 48 assert_false(new TextDecoder().ignoreBOM, 'The ignoreBOM attribute should default to false.'); 49 …assert_true(new TextDecoder('utf-8', {ignoreBOM: true}).ignoreBOM, 'The ignoreBOM attribute can be…
|
D | textdecoder-labels.any.js | 14 new TextDecoder(label).encoding, textDecoderName, 17 new TextDecoder(label.toUpperCase()).encoding, textDecoderName, 21 new TextDecoder(ws + label).encoding, textDecoderName, 24 new TextDecoder(label + ws).encoding, textDecoderName, 27 new TextDecoder(ws + label + ws).encoding, textDecoderName,
|
D | api-basics.any.js | 5 assert_equals((new TextDecoder).encoding, 'utf-8', 'default encoding is utf-8'); 16 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes)), string); 17 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), string); 32 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes)), string); 33 assert_equals(new TextDecoder(encoding).decode(new Uint8Array(bytes).buffer), string);
|
D | textdecoder-fatal.any.js | 55 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input)) 61 assert_true('fatal' in new TextDecoder(), 'The fatal attribute should exist on TextDecoder.'); 62 …assert_equals(typeof new TextDecoder().fatal, 'boolean', 'The type of the fatal attribute should … 63 assert_false(new TextDecoder().fatal, 'The fatal attribute should default to false.'); 64 …assert_true(new TextDecoder('utf-8', {fatal: true}).fatal, 'The fatal attribute can be set using a… 70 const decoder = new TextDecoder('utf-8', {fatal: true});
|
D | textdecoder-arguments.any.js | 4 const decoder = new TextDecoder(); 20 const decoder = new TextDecoder(); 36 const decoder = new TextDecoder();
|
D | textdecoder-fatal-streaming.any.js | 11 var decoder = new TextDecoder(testCase.encoding, {fatal: true}); 16 new TextDecoder(testCase.encoding).decode(new Uint8Array([testCase.sequence])), 24 var decoder = new TextDecoder('utf-16le', {fatal: true});
|
D | textdecoder-utf16-surrogates.any.js | 38 assert_equals(new TextDecoder(t.encoding).decode(new Uint8Array(t.input)), t.expected); 42 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array(t.input))
|
D | textdecoder-fatal-single-byte.any.js | 50 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array([i])); 56 …assert_equals(typeof new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array([i])), "stri…
|
D | textdecoder-streaming.any.js | 28 var decoder = new TextDecoder(encoding); 51 const decoder = new TextDecoder();
|
D | idlharness.any.js | 11 TextDecoder: ['new TextDecoder()'] property
|
/third_party/node/lib/internal/ |
D | encoding.js | 375 const TextDecoder = constant 386 class TextDecoder { class 452 return TextDecoder; 469 class TextDecoder { class 553 return TextDecoder; 578 const constructor = getConstructorOf(this) || TextDecoder; 600 ObjectDefineProperties(TextDecoder.prototype, { 612 TextDecoder, property
|
/third_party/node/lib/stream/ |
D | consumers.js | 8 TextDecoder, 58 const dec = new TextDecoder();
|
/third_party/node/test/fixtures/wpt/interfaces/ |
D | encoding.idl | 22 interface TextDecoder { 27 TextDecoder includes TextDecoderCommon;
|
/third_party/node/lib/internal/webstreams/ |
D | encoding.js | 12 TextDecoder, 151 this[kHandle] = new TextDecoder(encoding, options);
|
/third_party/node/lib/internal/bootstrap/ |
D | browser.js | 33 TextDecoder, 38 exposeInterface(globalThis, 'TextDecoder', TextDecoder);
|