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

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

Issue 2147633002: Remove nonstandard 'endings' option for Blob/File constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 Test the Blob constructor. 1 Test the Blob constructor.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS (new Blob()) instanceof window.Blob is true 6 PASS (new Blob()) instanceof window.Blob is true
7 PASS (new Blob(undefined)) instanceof window.Blob is true 7 PASS (new Blob(undefined)) instanceof window.Blob is true
8 PASS (new Blob([])) instanceof window.Blob is true 8 PASS (new Blob([])) instanceof window.Blob is true
9 PASS (new Blob(['hello'])) instanceof window.Blob is true 9 PASS (new Blob(['hello'])) instanceof window.Blob is true
10 PASS (new Blob(['hello'], {})) instanceof window.Blob is true 10 PASS (new Blob(['hello'], {})) instanceof window.Blob is true
11 PASS (new Blob(['hello'], {type:'text/html'})) instanceof window.Blob is true 11 PASS (new Blob(['hello'], {type:'text/html'})) instanceof window.Blob is true
12 PASS (new Blob(['hello'], {type:'text/html', endings:'native'})) instanceof wind ow.Blob is true
13 PASS (new Blob(['hello'], {type:'text/html', endings:'transparent'})) instanceof window.Blob is true
14 PASS (new Blob()).size is 0 12 PASS (new Blob()).size is 0
15 PASS (new Blob(undefined)).size is 0 13 PASS (new Blob(undefined)).size is 0
16 PASS (new Blob()).type is "" 14 PASS (new Blob()).type is ""
17 PASS (new Blob(undefined)).type is "" 15 PASS (new Blob(undefined)).type is ""
18 PASS new Blob('hello') threw exception TypeError: Failed to construct 'Blob': Th e 1st argument is neither an array, nor does it have indexed properties.. 16 PASS new Blob('hello') threw exception TypeError: Failed to construct 'Blob': Th e 1st argument is neither an array, nor does it have indexed properties..
19 PASS new Blob(0) threw exception TypeError: Failed to construct 'Blob': The 1st argument is neither an array, nor does it have indexed properties.. 17 PASS new Blob(0) threw exception TypeError: Failed to construct 'Blob': The 1st argument is neither an array, nor does it have indexed properties..
20 PASS new Blob(null) threw exception TypeError: Failed to construct 'Blob': The 1 st argument is neither an array, nor does it have indexed properties.. 18 PASS new Blob(null) threw exception TypeError: Failed to construct 'Blob': The 1 st argument is neither an array, nor does it have indexed properties..
21 PASS (new Blob([])) instanceof window.Blob is true 19 PASS (new Blob([])) instanceof window.Blob is true
22 PASS (new Blob(['stringPrimitive'])) instanceof window.Blob is true 20 PASS (new Blob(['stringPrimitive'])) instanceof window.Blob is true
23 PASS (new Blob([String('stringObject')])) instanceof window.Blob is true 21 PASS (new Blob([String('stringObject')])) instanceof window.Blob is true
24 PASS (new Blob([new Blob])) instanceof window.Blob is true 22 PASS (new Blob([new Blob])) instanceof window.Blob is true
25 PASS (new Blob([new Blob([new Blob])])) instanceof window.Blob is true 23 PASS (new Blob([new Blob([new Blob])])) instanceof window.Blob is true
26 PASS (new Blob([12])).size is 2 24 PASS (new Blob([12])).size is 2
27 PASS (new Blob([[]])).size is 0 25 PASS (new Blob([[]])).size is 0
28 PASS (new Blob([{}])).size is 15 26 PASS (new Blob([{}])).size is 15
29 PASS (new Blob([document])).size is 21 27 PASS (new Blob([document])).size is 21
30 PASS (new Blob([toStringingObj])).size is 8 28 PASS (new Blob([toStringingObj])).size is 8
31 PASS new Blob([throwingObj]) threw exception Error. 29 PASS new Blob([throwingObj]) threw exception Error.
32 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true 30 PASS (new Blob([], {unknownKey:'value'})) instanceof window.Blob is true
33 PASS new Blob([], {endings:'illegalValue'}) threw exception TypeError: Failed to construct 'Blob': The provided value 'illegalValue' is not a valid enum value o f type NormalizeLineEndings..
34 PASS new Blob([], {endings:throwingObj}) threw exception Error.
35 PASS new Blob([], {type:throwingObj}) threw exception Error. 31 PASS new Blob([], {type:throwingObj}) threw exception Error.
36 PASS new Blob([], {type:'helloĆ®'}) threw exception SyntaxError: Failed to constr uct 'Blob': The 'type' property must consist of ASCII characters.. 32 PASS new Blob([], {type:'helloĆ®'}) threw exception SyntaxError: Failed to constr uct 'Blob': The 'type' property must consist of ASCII characters..
37 PASS new Blob([], {endings:throwingObj1, type:throwingObj2}) threw exception Err or 1.
38 PASS new Blob([], {type:throwingObj2, endings:throwingObj1}) threw exception Err or 1.
39 PASS new Blob([], {type:throwingObj2, endings:'illegal'}) threw exception TypeEr ror: Failed to construct 'Blob': The provided value 'illegal' is not a valid enu m value of type NormalizeLineEndings..
40 PASS (new Blob([], null)) instanceof window.Blob is true 33 PASS (new Blob([], null)) instanceof window.Blob is true
41 PASS (new Blob([], undefined)) instanceof window.Blob is true 34 PASS (new Blob([], undefined)) instanceof window.Blob is true
42 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile d to construct 'Blob': parameter 2 ('options') is not an object.. 35 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile d to construct 'Blob': parameter 2 ('options') is not an object..
43 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': parameter 2 ('options') is not an object.. 36 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': parameter 2 ('options') is not an object..
44 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail ed to construct 'Blob': parameter 2 ('options') is not an object.. 37 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail ed to construct 'Blob': parameter 2 ('options') is not an object..
45 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': parameter 2 ('options') is not an object.. 38 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': parameter 2 ('options') is not an object..
46 PASS (new Blob([], [])) instanceof window.Blob is true 39 PASS (new Blob([], [])) instanceof window.Blob is true
47 PASS (new Blob([], /abc/)) instanceof window.Blob is true 40 PASS (new Blob([], /abc/)) instanceof window.Blob is true
48 PASS (new Blob([], function () {})) instanceof window.Blob is true 41 PASS (new Blob([], function () {})) instanceof window.Blob is true
49 PASS (new Blob([], {type:'text/html'})).type is 'text/html' 42 PASS (new Blob([], {type:'text/html'})).type is 'text/html'
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 PASS OMICRON_WITH_OXIA.charCodeAt(0) is 0x1F79 75 PASS OMICRON_WITH_OXIA.charCodeAt(0) is 0x1F79
83 PASS reader.result.charCodeAt(0) is 0x1F79 76 PASS reader.result.charCodeAt(0) is 0x1F79
84 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(3) is 0xDC00 77 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(3) is 0xDC00
85 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(7) is 0xD800 78 PASS CONTAINS_UNPAIRED_SURROGATES.charCodeAt(7) is 0xD800
86 PASS reader.result.charCodeAt(3) is 0xFFFD 79 PASS reader.result.charCodeAt(3) is 0xFFFD
87 PASS reader.result.charCodeAt(7) is 0xFFFD 80 PASS reader.result.charCodeAt(7) is 0xFFFD
88 PASS successfullyParsed is true 81 PASS successfullyParsed is true
89 82
90 TEST COMPLETE 83 TEST COMPLETE
91 84
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698