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

Unified Diff: third_party/WebKit/LayoutTests/fast/files/file-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/file-constructor-expected.txt
diff --git a/third_party/WebKit/LayoutTests/fast/files/file-constructor-expected.txt b/third_party/WebKit/LayoutTests/fast/files/file-constructor-expected.txt
index c55f69d96dbefbedbcacb5f6debfc5f0aa090eed..81e3fad57c407ecc089ec6e46cbcdd50b927d8ea 100644
--- a/third_party/WebKit/LayoutTests/fast/files/file-constructor-expected.txt
+++ b/third_party/WebKit/LayoutTests/fast/files/file-constructor-expected.txt
@@ -45,7 +45,11 @@ 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\u00EE'}).type is ""
+PASS new File([], 'world.html', {type:'hello\u001F'}).type is ""
+PASS new File([], 'world.html', {type:'hello\u007F'}).type is ""
+PASS new File([], 'world.html', {type:'ABC/abc'}).type is "abc/abc"
+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