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); |
} |