Skip to content

Commit 298f959

Browse files
committed
Add broken TextDecoder test that should pass
1 parent 1cb431f commit 298f959

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/tests/encoding/decoder.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@
4545
testing.expectEqual('', d2.decode(new Uint8Array([226, 153]), { stream: true }));
4646
testing.expectEqual('♥', d2.decode(new Uint8Array([165]), { stream: true }));
4747
</script>
48+
49+
<script id=slice>
50+
const buffer = new ArrayBuffer(4);
51+
const arr1 = new Uint8Array(buffer)
52+
arr1[0] = 80;
53+
arr1[1] = 81;
54+
arr1[2] = 82;
55+
arr1[3] = 83;
56+
testing.expectEqual('QR', d3.decode(new Uint8Array(buffer, 1, 2)));
57+
</script>

0 commit comments

Comments
 (0)