diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-04-26 23:48:44 -0400 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-04-27 02:52:58 -0400 |
commit | b30b1992ac360c1414ed04efd761131234a4bd67 (patch) | |
tree | e7452ab9909eb3da890a96d1202650f7504a426d /tests/wpt/web-platform-tests/FileAPI/blob/Blob-text.any.js | |
parent | 630cf2745b79a9910dc4c3bf15b52f65f7583235 (diff) | |
download | servo-b30b1992ac360c1414ed04efd761131234a4bd67.tar.gz servo-b30b1992ac360c1414ed04efd761131234a4bd67.zip |
Update web-platform-tests to revision 4accec3d14ccdc7b170017c0df299b954019f06f
Diffstat (limited to 'tests/wpt/web-platform-tests/FileAPI/blob/Blob-text.any.js')
-rw-r--r-- | tests/wpt/web-platform-tests/FileAPI/blob/Blob-text.any.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-text.any.js b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-text.any.js index 960c9605462..d04fa97cffe 100644 --- a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-text.any.js +++ b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-text.any.js @@ -50,3 +50,15 @@ promise_test(async () => { assert_equals(text, "\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd" + "\ufffd\ufffd\ufffd\ufffd"); }, "Blob.text() invalid utf-8 input") + +promise_test(async () => { + const input_arr = new Uint8Array([192, 193, 245, 246, 247, 248, 249, 250, 251, + 252, 253, 254, 255]); + const blob = new Blob([input_arr]); + const text_results = await Promise.all([blob.text(), blob.text(), + blob.text()]); + for (let text of text_results) { + assert_equals(text, "\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd" + + "\ufffd\ufffd\ufffd\ufffd"); + } +}, "Blob.text() concurrent reads") |