diff options
Diffstat (limited to 'testing/web-platform/tests/encoding/sharedarraybuffer.https.html')
-rw-r--r-- | testing/web-platform/tests/encoding/sharedarraybuffer.https.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/encoding/sharedarraybuffer.https.html b/testing/web-platform/tests/encoding/sharedarraybuffer.https.html new file mode 100644 index 0000000000..2cda3e5fb1 --- /dev/null +++ b/testing/web-platform/tests/encoding/sharedarraybuffer.https.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script> + +test(() => { + const decoder = new TextDecoder('utf-8'); + const buffer = new SharedArrayBuffer(4); + assert_equals(decoder.decode(new Uint8Array(buffer)), "\u0000\u0000\u0000\u0000"); +}, 'decoding SharedArrayBuffer'); + +</script> |