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

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

Issue 1235213004: Blob/File constructors/slice method shouldn't throw on invalid types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove debugging spew Created 5 years, 5 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
« no previous file with comments | « LayoutTests/fast/files/blob-constructor.html ('k') | LayoutTests/fast/files/file-constructor.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/files/blob-constructor-expected.txt
diff --git a/LayoutTests/fast/files/blob-constructor-expected.txt b/LayoutTests/fast/files/blob-constructor-expected.txt
index 7fa7eb120a0927cbf7874146682b4fb41cad151e..0de8a91e6d8c549e0989891ec5949b3b05392b0e 100644
--- a/LayoutTests/fast/files/blob-constructor-expected.txt
+++ b/LayoutTests/fast/files/blob-constructor-expected.txt
@@ -28,10 +28,11 @@ 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Ć®'}).type is ""
+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..
« no previous file with comments | « LayoutTests/fast/files/blob-constructor.html ('k') | LayoutTests/fast/files/file-constructor.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698