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

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

Issue 57483002: Implement File constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed most feedback. Created 7 years, 1 month 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-tests.js
diff --git a/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-tests.js b/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-tests.js
index b2f29bc5b7badd12e1e354651c637d660eac7919..6b5c611eb7b82301aa1b764abb282e6daa3d52ce 100644
--- a/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-tests.js
+++ b/LayoutTests/http/tests/xmlhttprequest/post-blob-content-type-tests.js
@@ -45,4 +45,25 @@ var xhrBlobTestCases = [{
expectedMime: 'text/plain;charset=utf-8',
url: 'http://localhost:8000',
allowOrigin: '?origin=http://127.0.0.1:8000'
-}];
+}, {
+ mime: 'text/plain;charset=utf-8',
+ expectedMime: 'text/plain;charset=utf-8',
+ file: 'hello.txt'
+}, {
+ mime: 'ASCII/CR\r;charset=invalid',
+ expectedMime: '',
+ file: 'hello.txt'
+}, {
+ mime: '',
+ expectedMime: '',
+ file: 'hello.txt'
+}, {
+ mime: 'multipart/mixed;boundary="--blob-boundary"',
+ expectedMime: 'multipart/mixed;boundary="--blob-boundary"',
+ file: 'hello.txt'
+}, {
+ mime: '\u0422\u0435\u0441\u0442',
+ expectedMime: '',
+ shouldThrow: true,
+ file: 'hello.txt'
+}];

Powered by Google App Engine
This is Rietveld 408576698