Index: LayoutTests/http/tests/fetch/script-tests/thorough/scheme-blob.js |
diff --git a/LayoutTests/http/tests/fetch/script-tests/thorough/scheme-blob.js b/LayoutTests/http/tests/fetch/script-tests/thorough/scheme-blob.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3232a22351f09e16817697a5f9c55941b31ba3b5 |
--- /dev/null |
+++ b/LayoutTests/http/tests/fetch/script-tests/thorough/scheme-blob.js |
@@ -0,0 +1,24 @@ |
+if (self.importScripts) { |
+ importScripts('/fetch/resources/fetch-test-helpers.js'); |
+ importScripts('/fetch/resources/thorough-util.js'); |
+} |
+ |
+var url = URL.createObjectURL(new Blob(["report({jsonpResult: 'success'});"], {type: 'application/json'})); |
+ |
+var TEST_TARGETS = [ |
+// Same-origin blob: requests. |
+ [BASE_URL + 'url=' + encodeURIComponent(url) + '&mode=same-origin&method=GET', |
+ [fetchResolved, hasContentLength, noServerHeader, hasBody, typeBasic], |
+ [checkJsonpSuccess]], |
+ [BASE_URL + 'url=' + encodeURIComponent(url) + '&mode=cors&method=GET', |
+ [fetchResolved, hasContentLength, noServerHeader, hasBody, typeBasic], |
+ [checkJsonpSuccess]], |
+ [BASE_URL + 'url=' + encodeURIComponent(url) + '&mode=no-cors&method=GET', |
+ [fetchResolved, hasContentLength, noServerHeader, hasBody, typeBasic], |
+ [checkJsonpSuccess]], |
+]; |
+ |
+if (self.importScripts) { |
+ executeTests(TEST_TARGETS); |
+ done(); |
+} |