Lines Matching full:utf
19 // Test TextDecoder, UTF-8, fatal: false, ignoreBOM: false
21 ['unicode-1-1-utf-8', 'utf8', 'utf-8'].forEach((i) => {
23 assert.strictEqual(dec.encoding, 'utf-8');
28 ['unicode-1-1-utf-8', 'utf8', 'utf-8'].forEach((i) => {
37 // Test TextDecoder, UTF-8, fatal: false, ignoreBOM: true
39 ['unicode-1-1-utf-8', 'utf8', 'utf-8'].forEach((i) => {
45 ['unicode-1-1-utf-8', 'utf8', 'utf-8'].forEach((i) => {
54 // Test TextDecoder, UTF-8, fatal: true, ignoreBOM: false
56 ['unicode-1-1-utf-8', 'utf8', 'utf-8'].forEach((i) => {
63 'for encoding utf-8'
67 ['unicode-1-1-utf-8', 'utf8', 'utf-8'].forEach((i) => {
74 () => new TextDecoder('utf-8', { fatal: true }),
85 assert.strictEqual(dec.encoding, 'utf-8');
91 // Test TextDecoder, UTF-16le
93 const dec = new TextDecoder('utf-16le');
94 const res = dec.decode(Buffer.from('test€', 'utf-16le'));
98 // Test TextDecoder, UTF-16be
100 const dec = new TextDecoder('utf-16be');
101 const res = dec.decode(Buffer.from('test€', 'utf-16le').swap16());
107 const dec = new TextDecoder('utf-8', { ignoreBOM: true });
112 ' encoding: \'utf-8\',\n' +
123 " encoding: 'utf-8',\n" +
139 const dec = new TextDecoder('utf-8', { ignoreBOM: true });
142 'TextDecoder { encoding: \'utf-8\', fatal: false, ignoreBOM: true }'
187 () => new TextDecoder('utf-8', 1),