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

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

Issue 111373003: Migrate bindings constructors to the new ExceptionState model. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh. Created 7 years 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 d32bdc1d3996be39967d224bcc452f69850fe893..8c10bd2e763d38d0d725329bd7c5feb03353cc4b 100644
--- a/LayoutTests/fast/files/file-constructor-expected.txt
+++ b/LayoutTests/fast/files/file-constructor-expected.txt
@@ -10,8 +10,8 @@ PASS (new File(['hello'], 'world.html', {type:'text/html'})) instanceof window.F
PASS (new File(['hello'], 'world.html', {type:'text/html', endings:'native'})) instanceof window.File is true
PASS (new File(['hello'], 'world.html', {type:'text/html', endings:'transparent'})) instanceof window.File is true
PASS (new File([], 'world.html')) instanceof window.File is true
-PASS (new File()) threw exception TypeError: File constructor requires at least two arguments.
-PASS (new File([])) threw exception TypeError: File constructor requires at least two arguments.
+PASS (new File()) threw exception TypeError: Failed to construct 'File': 2 arguments required, but only 0 present..
+PASS (new File([])) threw exception TypeError: Failed to construct 'File': 2 arguments required, but only 1 present..
PASS (new File([], null)) instanceof window.File is true
PASS (new File([], 1)) instanceof window.File is true
PASS (new File([], '')) instanceof window.File is true
@@ -41,10 +41,10 @@ PASS (new File([], document)).name is '[object HTMLDocument]'
PASS (new File([], toStringingObj)).name is 'A string'
PASS (new File([], throwingObj)).name threw exception Error.
PASS (new File([], 'world.html', {unknownKey:'value'})) instanceof window.File is true
-PASS new File([], 'world.html', {endings:'illegalValue'}) threw exception TypeError: Failed to construct 'File': The "endings" property must be either "transparent" or "native"..
+PASS new File([], 'world.html', {endings:'illegalValue'}) threw exception TypeError: Failed to construct 'File': The 'endings' property must be either 'transparent' or 'native'..
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Ć®'}) threw exception SyntaxError: Failed to construct 'File': The 'type' property must consist of ASCII characters..
PASS (new File([], 'world.html', null)) instanceof window.File threw exception TypeError: Failed to construct 'File': The 3rd argument is not of type Object..
PASS (new File([], 'world.html', undefined)) instanceof window.File threw exception TypeError: Failed to construct 'File': The 3rd argument is not of type Object..
PASS (new File([], 'world.html', 123)) instanceof window.File threw exception TypeError: Failed to construct 'File': The 3rd argument is not of type Object..
@@ -99,7 +99,7 @@ PASS new File({length: 0}, 'world.txt').size is 0
PASS new File({length: 1, 0: 'string'}, 'world.txt').size is 6
PASS new File({length: 2, 0: new Uint8Array(100), 1: new Int16Array(100)}, 'world.txt').size is 300
PASS new File({length: 1, 0: 'string'}, 'world.txt', {type: 'text/html'}).type is 'text/html'
-PASS new File({length: 0}, 'world.txt', {endings:'illegal'}) threw exception TypeError: Failed to construct 'File': The "endings" property must be either "transparent" or "native"..
+PASS new File({length: 0}, 'world.txt', {endings:'illegal'}) threw exception TypeError: Failed to construct 'File': The 'endings' property must be either 'transparent' or 'native'..
PASS new File(throwingSequence, 'world.txt') threw exception Error: Misbehaving property.
PASS successfullyParsed is true
« no previous file with comments | « LayoutTests/fast/files/file-constructor.html ('k') | LayoutTests/fast/frames/sandboxed-iframe-workers-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698