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

Unified Diff: LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async.html

Issue 157363003: Implement Blob.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 months 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/post-blob-content-type-async.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async.html b/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async.html
index 1dc1fb0513ed747b665b606d24256eb6157e14fa..f16828fd559e0bb38d3ef27fdbeabe25da0ad081 100644
--- a/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async.html
+++ b/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-async.html
@@ -43,7 +43,7 @@
url += testCase.allowOrigin || "";
if (testCase.shouldThrow !== undefined) {
try {
- testBlobContentTypeAsync(url, mime, file);
+ testBlobContentTypeAsync(url, mime, file, testCase.closeBeforeSend);
} catch (e) {
testPassed("Exception should be thrown.")
runNextAsyncTest();
@@ -53,7 +53,7 @@
}
}
- function testBlobContentTypeAsync(url, mimeType, fileName) {
+ function testBlobContentTypeAsync(url, mimeType, fileName, closeBeforeSend) {
var blob;
if (fileName) {
if (mimeType !== "")
@@ -70,6 +70,8 @@
xhr = new XMLHttpRequest();
xhr.onloadend = reportResult;
xhr.open("POST", url, true);
+ if (closeBeforeSend)
+ blob.close();
xhr.send(blob);
}

Powered by Google App Engine
This is Rietveld 408576698