Home
last modified time | relevance | path

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

123

/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 });
57 const dec = new TextDecoder(i, { fatal: true });
68 const dec = new TextDecoder(i, { fatal: true });
74 () => new TextDecoder('utf-8', { fatal: true }),
84 const dec = new TextDecoder(undefined, null);
93 const dec = new TextDecoder('utf-16le');
[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-encoding-custom-textdecoder-invalid-arg.js13 new TextDecoder(undefined, null).decode(invalidInputType);
/third_party/node/test/fixtures/wpt/encoding/
Dtextdecoder-ignorebom.any.js12 var decoder = new TextDecoder(testCase.encoding, {ignoreBOM: true});
19 decoder = new TextDecoder(testCase.encoding, {ignoreBOM: false});
25 decoder = new TextDecoder(testCase.encoding);
34 …assert_true('ignoreBOM' in new TextDecoder(), 'The ignoreBOM attribute should exist on TextDecoder…
35 …assert_equals(typeof new TextDecoder().ignoreBOM, 'boolean', 'The type of the ignoreBOM attribute…
36 assert_false(new TextDecoder().ignoreBOM, 'The ignoreBOM attribute should default to false.');
37 …assert_true(new TextDecoder('utf-8', {ignoreBOM: true}).ignoreBOM, 'The ignoreBOM attribute can be…
Dtextdecoder-labels.any.js13 new TextDecoder(label).encoding, textDecoderName,
16 new TextDecoder(label.toUpperCase()).encoding, textDecoderName,
20 new TextDecoder(ws + label).encoding, textDecoderName,
23 new TextDecoder(label + ws).encoding, textDecoderName,
26 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-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.js41 new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array([i]));
47 …assert_equals(typeof new TextDecoder(t.encoding, {fatal: true}).decode(new Uint8Array([i])), "stri…
Didlharness.any.js11 TextDecoder: ['new TextDecoder()'] property
Dapi-replacement-encodings.any.js10 assert_throws(new RangeError(), function() { new TextDecoder(label); });
Dtextdecoder-copy.any.js6 decoder = new TextDecoder("utf-8")
Dtextencoder-constructor-non-utf.any.js8 …assert_equals(new TextDecoder(encoding.name).encoding, encoding.name.toLowerCase()); // ASCII name…
Dapi-invalid-label.any.js22 assert_throws(new RangeError(), function() { new TextDecoder(input); });
Dtextencoder-utf16-surrogates.any.js39 var decoded = new TextDecoder().decode(encoded);
/third_party/node/lib/internal/
Dencoding.js367 const TextDecoder = constant
378 class TextDecoder { class
435 return TextDecoder;
452 class TextDecoder { class
528 return TextDecoder;
533 TextDecoder.prototype,
555 const constructor = getConstructorOf(this) || TextDecoder;
571 ObjectDefineProperties(TextDecoder.prototype, {
582 TextDecoder, property
Dblob.js23 const { TextDecoder } = require('internal/encoding');
217 const dec = new TextDecoder();
/third_party/node/test/fixtures/wpt/interfaces/
Dencoding.idl22 interface TextDecoder {
27 TextDecoder includes TextDecoderCommon;
/third_party/flatbuffers/ts/flexbuffers/
Dflexbuffers-util.ts2 const decoder = new TextDecoder();
/third_party/node/lib/
Dutil.js55 const { TextDecoder, TextEncoder } = require('internal/encoding');
363 TextDecoder, property

123