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

Unified Diff: LayoutTests/fast/files/file-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
Index: LayoutTests/fast/files/file-constructor-expected.txt
diff --git a/LayoutTests/fast/files/file-constructor-expected.txt b/LayoutTests/fast/files/file-constructor-expected.txt
index c55f69d96dbefbedbcacb5f6debfc5f0aa090eed..6120e386dc1ba927451d174abf9bc4f5ec6ad258 100644
--- a/LayoutTests/fast/files/file-constructor-expected.txt
+++ b/LayoutTests/fast/files/file-constructor-expected.txt
@@ -45,7 +45,8 @@ PASS (new File([], 'world.html', {unknownKey:'value'})) instanceof window.File i
PASS new File([], 'world.html', {endings:'illegalValue'}) threw exception TypeError: Failed to construct 'File': The provided value 'illegalValue' is not a valid enum value of type NormalizeLineEndings..
PASS new File([], 'world.html', {endings:throwingObj}) threw exception Error.
PASS new File([], 'world.html', {type:throwingObj}) threw exception Error.
-PASS new File([], 'world.html', {type:'helloĆ®'}) threw exception SyntaxError: Failed to construct 'File': The 'type' property must consist of ASCII characters..
+PASS new File([], 'world.html', {type:'helloĆ®'}).type is ""
+PASS new File([], 'world.html', {type:'123ABCabc'}).type is "123abcabc"
PASS (new File([], 'world.html', null)) instanceof window.File is true
PASS (new File([], 'world.html', undefined)) instanceof window.File is true
PASS (new File([], 'world.html', 123)) instanceof window.File threw exception TypeError: Failed to construct 'File': parameter 3 ('options') is not an object..

Powered by Google App Engine
This is Rietveld 408576698