From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tests/FileAPI/blob/Blob-XHR-revoke.html | 28 ++ .../tests/FileAPI/blob/Blob-close.html | 39 ++ .../tests/FileAPI/blob/Blob-constructor.html | 495 +++++++++++++++++++++ .../tests/FileAPI/blob/Blob-in-worker.worker.js | 14 + .../tests/FileAPI/blob/Blob-slice-overflow.html | 42 ++ .../tests/FileAPI/blob/Blob-slice.html | 214 +++++++++ 6 files changed, 832 insertions(+) create mode 100644 testing/web-platform/tests/FileAPI/blob/Blob-XHR-revoke.html create mode 100644 testing/web-platform/tests/FileAPI/blob/Blob-close.html create mode 100644 testing/web-platform/tests/FileAPI/blob/Blob-constructor.html create mode 100644 testing/web-platform/tests/FileAPI/blob/Blob-in-worker.worker.js create mode 100644 testing/web-platform/tests/FileAPI/blob/Blob-slice-overflow.html create mode 100644 testing/web-platform/tests/FileAPI/blob/Blob-slice.html (limited to 'testing/web-platform/tests/FileAPI/blob') diff --git a/testing/web-platform/tests/FileAPI/blob/Blob-XHR-revoke.html b/testing/web-platform/tests/FileAPI/blob/Blob-XHR-revoke.html new file mode 100644 index 000000000..fea313eee --- /dev/null +++ b/testing/web-platform/tests/FileAPI/blob/Blob-XHR-revoke.html @@ -0,0 +1,28 @@ + +Revoking blob URL used with XMLHttpRequest + + + + \ No newline at end of file diff --git a/testing/web-platform/tests/FileAPI/blob/Blob-close.html b/testing/web-platform/tests/FileAPI/blob/Blob-close.html new file mode 100644 index 000000000..45df1e211 --- /dev/null +++ b/testing/web-platform/tests/FileAPI/blob/Blob-close.html @@ -0,0 +1,39 @@ + + +Blob.close + + + + +
+ diff --git a/testing/web-platform/tests/FileAPI/blob/Blob-constructor.html b/testing/web-platform/tests/FileAPI/blob/Blob-constructor.html new file mode 100644 index 000000000..d8375c2a6 --- /dev/null +++ b/testing/web-platform/tests/FileAPI/blob/Blob-constructor.html @@ -0,0 +1,495 @@ + + +Blob constructor + + + + + + + +
+ diff --git a/testing/web-platform/tests/FileAPI/blob/Blob-in-worker.worker.js b/testing/web-platform/tests/FileAPI/blob/Blob-in-worker.worker.js new file mode 100644 index 000000000..a67060e7b --- /dev/null +++ b/testing/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(); diff --git a/testing/web-platform/tests/FileAPI/blob/Blob-slice-overflow.html b/testing/web-platform/tests/FileAPI/blob/Blob-slice-overflow.html new file mode 100644 index 000000000..56891af5f --- /dev/null +++ b/testing/web-platform/tests/FileAPI/blob/Blob-slice-overflow.html @@ -0,0 +1,42 @@ + + +Blob slice overflow + + + + +
+ + diff --git a/testing/web-platform/tests/FileAPI/blob/Blob-slice.html b/testing/web-platform/tests/FileAPI/blob/Blob-slice.html new file mode 100644 index 000000000..0ecea79c8 --- /dev/null +++ b/testing/web-platform/tests/FileAPI/blob/Blob-slice.html @@ -0,0 +1,214 @@ + + +Blob slice + + + + + +
+ -- cgit v1.2.3