Lines Matching refs:Uint8Array
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");
16 decoder.decode(new Uint8Array([0xF0]), { stream: true });
19 decoder.decode(new Uint8Array([0xF0]), { stream: true });
20 decoder.decode(new Uint8Array([0x9F]), { stream: true });
23 decoder.decode(new Uint8Array([0xF0, 0x9F]), { stream: true });
24 assert_equals(decoder.decode(new Uint8Array([0x92])), "\uFFFD");
26 assert_equals(decoder.decode(new Uint8Array([0xF0, 0x9F]), { stream: true }), "");
27 assert_equals(decoder.decode(new Uint8Array([0x41]), { stream: true }), "\uFFFDA");
30 assert_equals(decoder.decode(new Uint8Array([0xF0, 0x41, 0x42]), { stream: true }), "\uFFFDAB");
33 assert_equals(decoder.decode(new Uint8Array([0xF0, 0x41, 0xF0]), { stream: true }), "\uFFFDA");
36 assert_equals(decoder.decode(new Uint8Array([0xF0]), { stream: true }), "");
37 assert_equals(decoder.decode(new Uint8Array([0x8F]), { stream: true }), "\uFFFD\uFFFD");
38 assert_equals(decoder.decode(new Uint8Array([0x92]), { stream: true }), "\uFFFD");