Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Unified Diff: LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent-response-type-blob.html

Issue 23444058: Use downloadToFile option when XHR downloads a Blob (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase test style and XHR Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent-response-type-blob.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent.html b/LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent-response-type-blob.html
similarity index 72%
copy from LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent.html
copy to LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent-response-type-blob.html
index a3ff9d8aecd10b30a76bdead3b6f4f514d5c9dc2..1fd370fa2b8cc8cafdc6c95cc86ee56d3e2ffa26 100644
--- a/LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent.html
+++ b/LayoutTests/http/tests/xmlhttprequest/infoOnProgressEvent-response-type-blob.html
@@ -1,7 +1,7 @@
<html>
<head/>
<body>
-<p> Test case for bug 13596: Implement .onprogress handler on XMLHttpRequest objects to support progressive download content length information </p>
+<p> .onprogress handler on XMLHttpRequest objects with response type "blob" works to support progressive download content length information </p>
<p> You should see type, bubble, cancelable, eventPhase, target and current target.</p>
<script type="text/javascript">
function log (msg)
@@ -27,20 +27,15 @@ function onProgress(e) {
testRunner.notifyDone();
}
-function onError(e) {
- alert("Error " + e.target.status + " occurred while receiving the document.");
-}
-
-var shouldNotify = false;
-
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var req = new XMLHttpRequest();
+req.responseType = "blob";
req.onprogress = onProgress;
-req.open("GET", "resources/1251.html", true);
+req.open("GET", "resources/get.txt", true);
req.send(null);
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698