diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-03-15 15:55:36 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-03-15 16:34:24 +0100 |
commit | a91433f0c87a8ef094be98d8849b7f661d5ad5e5 (patch) | |
tree | 6b6ffdf85096c309d7be8c63e825615c05487221 /tests/wpt/web-platform-tests/FileAPI/blob/Blob-in-worker.worker.js | |
parent | 183772583fcbb1f8103e8d6542a620134ba9182e (diff) | |
download | servo-a91433f0c87a8ef094be98d8849b7f661d5ad5e5.tar.gz servo-a91433f0c87a8ef094be98d8849b7f661d5ad5e5.zip |
Update web-platform-tests to revision 66c4613f823c4384c78ada77346eda17bb128947
Diffstat (limited to 'tests/wpt/web-platform-tests/FileAPI/blob/Blob-in-worker.worker.js')
-rw-r--r-- | tests/wpt/web-platform-tests/FileAPI/blob/Blob-in-worker.worker.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-in-worker.worker.js b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-in-worker.worker.js new file mode 100644 index 00000000000..a67060e7b85 --- /dev/null +++ b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-in-worker.worker.js @@ -0,0 +1,14 @@ +importScripts("/resources/testharness.js"); + +async_test(function() { + var data = "TEST"; + var blob = new Blob([data], {type: "text/plain"}); + var reader = new FileReader(); + reader.onload = this.step_func_done(function() { + assert_equals(reader.result, data); + }); + reader.onerror = this.unreached_func("Unexpected error event"); + reader.readAsText(blob); +}, "Create Blob in Worker"); + +done(); |