Chromium Code Reviews| 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 84% |
| 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..dd163341854fe2b31f05b948cac7addf4a7cec85 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 verify that file with content type does trigger onProgress event when response type 'blob' is specified. </p> |
|
tyoshino (SeeGerritForStatus)
2013/09/24 10:28:31
Not your mistake but
verify -> verifies
yusukesuzuki
2013/09/24 11:13:39
Done.
|
| <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); |