Home
last modified time | relevance | path

Searched refs:TextDecoder (Results 1 – 25 of 81) sorted by relevance

1234

/third_party/node/test/parallel/
Dtest-whatwg-encoding-custom-textdecoder.js17 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 …]
Dtest-whatwg-encoding-custom-api-basics.js12 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),
Dtest-whatwg-encoding-custom-textdecoder-api-invalid-label.js18 () => new TextDecoder(`${ws}${i}`),
26 () => new TextDecoder(`${i}${ws}`),
34 () => new TextDecoder(`${ws}${i}${ws}`),
Dtest-whatwg-encoding-custom-textdecoder-ignorebom.js23 let decoder = new TextDecoder(testCase.encoding, { ignoreBOM: true });
26 decoder = new TextDecoder(testCase.encoding, { ignoreBOM: false });
28 decoder = new TextDecoder(testCase.encoding);
Dtest-global-encoder.js7 strictEqual(TextDecoder, util.TextDecoder);
Dtest-whatwg-encoding-custom-fatal-streaming.js21 const decoder = new TextDecoder(testCase.encoding, { fatal: true });
34 const decoder = new TextDecoder('utf-16le', { fatal: true });
Dtest-whatwg-webstreams-adapters-to-streamduplex.js77 const dc = new TextDecoder();
102 const dc = new TextDecoder();
121 const dc = new TextDecoder();
Dtest-filehandle-readablestream.js18 const dec = new TextDecoder();
93 const dec = new TextDecoder();
Dtest-whatwg-encoding-custom-textdecoder-invalid-arg.js13 new TextDecoder(undefined, null).decode(invalidInputType);
/third_party/node/test/fixtures/wpt/encoding/
Dtextdecoder-eof.any.js3 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();
Dtextdecoder-ignorebom.any.js12 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…
Dtextdecoder-labels.any.js14 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,
Dapi-basics.any.js5 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);
Dtextdecoder-fatal.any.js55 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});
Dtextdecoder-arguments.any.js4 const decoder = new TextDecoder();
20 const decoder = new TextDecoder();
36 const decoder = new TextDecoder();
Dtextdecoder-fatal-streaming.any.js11 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});
Dtextdecoder-utf16-surrogates.any.js38 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))
Dtextdecoder-fatal-single-byte.any.js50 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…
Dtextdecoder-streaming.any.js28 var decoder = new TextDecoder(encoding);
51 const decoder = new TextDecoder();
Didlharness.any.js11 TextDecoder: ['new TextDecoder()'] property
/third_party/node/lib/internal/
Dencoding.js375 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/
Dconsumers.js8 TextDecoder,
58 const dec = new TextDecoder();
/third_party/node/test/fixtures/wpt/interfaces/
Dencoding.idl22 interface TextDecoder {
27 TextDecoder includes TextDecoderCommon;
/third_party/node/lib/internal/webstreams/
Dencoding.js12 TextDecoder,
151 this[kHandle] = new TextDecoder(encoding, options);
/third_party/node/lib/internal/bootstrap/
Dbrowser.js33 TextDecoder,
38 exposeInterface(globalThis, 'TextDecoder', TextDecoder);

1234