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

Unified Diff: third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt

Issue 1362963003: Blob/File constructors/slice method shouldn't throw on invalid types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated win expectation Created 3 years, 9 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: third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt b/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
index fe17544ef7227de83396e184195ce95d8a6bde12..284953da3eb24b6bb26a1c2ffc404b741ae03762 100644
--- a/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/files/blob-constructor-expected.txt
@@ -33,10 +33,14 @@ PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true
PASS new Blob([], {endings:'illegalValue'}) threw exception TypeError: Failed to construct 'Blob': The provided value 'illegalValue' is not a valid enum value of type NormalizeLineEndings..
PASS new Blob([], {endings:throwingObj}) threw exception Error.
PASS new Blob([], {type:throwingObj}) threw exception Error.
-PASS new Blob([], {type:'helloĆ®'}) threw exception SyntaxError: Failed to construct 'Blob': The 'type' property must consist of ASCII characters..
PASS new Blob([], {endings:throwingObj1, type:throwingObj2}) threw exception Error 1.
PASS new Blob([], {type:throwingObj2, endings:throwingObj1}) threw exception Error 1.
PASS new Blob([], {type:throwingObj2, endings:'illegal'}) threw exception TypeError: Failed to construct 'Blob': The provided value 'illegal' is not a valid enum value of type NormalizeLineEndings..
+PASS new Blob([], {type:'hello\u00EE'}).type is ""
+PASS new Blob([], {type:'hello\u001F'}).type is ""
+PASS new Blob([], {type:'hello\u007F'}).type is ""
+PASS new Blob([], {type:'ABC/abc'}).type is "abc/abc"
+PASS new Blob([], {type:'123ABCabc'}).type is "123abcabc"
PASS (new Blob([], null)) instanceof window.Blob is true
PASS (new Blob([], undefined)) instanceof window.Blob is true
PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Failed to construct 'Blob': parameter 2 ('options') is not an object..

Powered by Google App Engine
This is Rietveld 408576698