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

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

Issue 157363003: Implement Blob.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid warning from PHP's fread() on empty reads 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-sync.html
diff --git a/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-sync.html b/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-sync.html
index e111c942ef33909a94483a24adfc3cdce4664af4..91993da2f5039ebf12ec16b033732be837576006 100644
--- a/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-sync.html
+++ b/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-sync.html
@@ -21,7 +21,7 @@
url += testCase.allowOrigin || "";
if (testCase.shouldThrow !== undefined) {
try {
- testBlobContentTypeSync(url, file, mime, expectedMime);
+ testBlobContentTypeSync(url, file, mime, expectedMime, testCase.closeBeforeSend);
} catch (e) {
testPassed("Exception should be thrown.")
}
@@ -31,7 +31,7 @@
}
}
- function testBlobContentTypeSync(url, fileName, mimeType, expectedMime) {
+ function testBlobContentTypeSync(url, fileName, mimeType, expectedMime, closeBeforeSend) {
var blob;
if (fileName) {
if (mimeType !== "")
@@ -47,6 +47,8 @@
xhr = new XMLHttpRequest();
xhr.open("POST", url, false);
+ if (closeBeforeSend)
+ blob.close();
xhr.send(blob);
if (xhr.status === 200) {
postedMimeType = JSON.parse(xhr.response)['content-type'] || "";

Powered by Google App Engine
This is Rietveld 408576698