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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress-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/xmlhttprequest-no-content-length-onProgress-response-type-blob.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress.html b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress-response-type-blob.html
similarity index 80%
copy from LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress.html
copy to LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress-response-type-blob.html
index 13267385e1c399934d5add542c9645dfb8f8bbd9..801cfade0ea13bcdcb19759ef4146169c706ce93 100644
--- a/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress.html
+++ b/LayoutTests/http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress-response-type-blob.html
@@ -1,10 +1,8 @@
<html>
<head>
- <title> Test case for bug 18655 </title>
</head>
<body>
-<p> Test case for Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=18655">18655</a>: [XHR] OnProgress needs more test case </p>
-<p> This test verify that file with content type does trigger onProgress event. </p>
+<p> This test verifies that file with content type does trigger onProgress event when response type "blob" is specified. </p>
<p> You should see PASSED twice. </p>
<body>
<p id="shouldBeCalled"> FAILED </p>
@@ -30,6 +28,7 @@ function onProgressFailed(e) {
}
var req = new XMLHttpRequest();
+req.responseType = "blob";
req.onprogress = onProgressPassed;
req.onload = checkDone;
// Test that onProgress is called on a normal file
@@ -38,6 +37,7 @@ req.send(null);
// If content length is not given, it should not be called
var req2 = new XMLHttpRequest();
+req2.responseType = "blob";
req2.onprogress = onProgressFailed;
req2.onload = checkDone;
req2.open("GET", "resources/noContentLength.asis", true);

Powered by Google App Engine
This is Rietveld 408576698