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

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

Issue 74213009: File constructor understands lastModified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed feedback. Created 7 years, 1 month 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([])) instanceof window.Blob is true 7 PASS (new Blob([])) instanceof window.Blob is true
8 PASS (new Blob(['hello'])) instanceof window.Blob is true 8 PASS (new Blob(['hello'])) 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'], {type:'text/html'})) instanceof window.Blob is true 10 PASS (new Blob(['hello'], {type:'text/html'})) instanceof window.Blob is true
(...skipping 25 matching lines...) Expand all
36 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile d to construct 'Blob': The 2nd argument is not of type Object.. 36 PASS (new Blob([], 123)) instanceof window.Blob threw exception TypeError: Faile d to construct 'Blob': The 2nd argument is not of type Object..
37 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': The 2nd argument is not of type Object.. 37 PASS (new Blob([], 123.4)) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': The 2nd argument is not of type Object..
38 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail ed to construct 'Blob': The 2nd argument is not of type Object.. 38 PASS (new Blob([], true)) instanceof window.Blob threw exception TypeError: Fail ed to construct 'Blob': The 2nd argument is not of type Object..
39 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': The 2nd argument is not of type Object.. 39 PASS (new Blob([], 'abc')) instanceof window.Blob threw exception TypeError: Fai led to construct 'Blob': The 2nd argument is not of type Object..
40 PASS (new Blob([], [])) instanceof window.Blob is true 40 PASS (new Blob([], [])) instanceof window.Blob is true
41 PASS (new Blob([], /abc/)) instanceof window.Blob is true 41 PASS (new Blob([], /abc/)) instanceof window.Blob is true
42 PASS (new Blob([], function () {})) instanceof window.Blob is true 42 PASS (new Blob([], function () {})) instanceof window.Blob is true
43 PASS (new Blob([], {type:'text/html'})).type is 'text/html' 43 PASS (new Blob([], {type:'text/html'})).type is 'text/html'
44 PASS (new Blob([], {type:'text/html'})).size is 0 44 PASS (new Blob([], {type:'text/html'})).size is 0
45 PASS (new Blob([], {type:'text/plain;charset=UTF-8'})).type is 'text/plain;chars et=utf-8' 45 PASS (new Blob([], {type:'text/plain;charset=UTF-8'})).type is 'text/plain;chars et=utf-8'
46 PASS (new Blob([])).lastModified is undefined
47 PASS (new Blob([], {})).lastModified is undefined
48 PASS (new Blob([], {lastModified: new Date()})).lastModified is undefined
46 PASS window.Blob.length is 0 49 PASS window.Blob.length is 0
47 PASS new Blob([new DataView(new ArrayBuffer(100))]).size is 100 50 PASS new Blob([new DataView(new ArrayBuffer(100))]).size is 100
48 PASS new Blob([new Uint8Array(100)]).size is 100 51 PASS new Blob([new Uint8Array(100)]).size is 100
49 PASS new Blob([new Uint8ClampedArray(100)]).size is 100 52 PASS new Blob([new Uint8ClampedArray(100)]).size is 100
50 PASS new Blob([new Uint16Array(100)]).size is 200 53 PASS new Blob([new Uint16Array(100)]).size is 200
51 PASS new Blob([new Uint32Array(100)]).size is 400 54 PASS new Blob([new Uint32Array(100)]).size is 400
52 PASS new Blob([new Int8Array(100)]).size is 100 55 PASS new Blob([new Int8Array(100)]).size is 100
53 PASS new Blob([new Int16Array(100)]).size is 200 56 PASS new Blob([new Int16Array(100)]).size is 200
54 PASS new Blob([new Int32Array(100)]).size is 400 57 PASS new Blob([new Int32Array(100)]).size is 400
55 PASS new Blob([new Float32Array(100)]).size is 400 58 PASS new Blob([new Float32Array(100)]).size is 400
(...skipping 16 matching lines...) Expand all
72 PASS new Blob({length: 0}).size is 0 75 PASS new Blob({length: 0}).size is 0
73 PASS new Blob({length: 1, 0: 'string'}).size is 6 76 PASS new Blob({length: 1, 0: 'string'}).size is 6
74 PASS new Blob({length: 2, 0: new Uint8Array(100), 1: new Int16Array(100)}).size is 300 77 PASS new Blob({length: 2, 0: new Uint8Array(100), 1: new Int16Array(100)}).size is 300
75 PASS new Blob({length: 1, 0: 'string'}, {type: 'text/html'}).type is 'text/html' 78 PASS new Blob({length: 1, 0: 'string'}, {type: 'text/html'}).type is 'text/html'
76 PASS new Blob({length: 0}, {endings:'illegal'}) threw exception TypeError: Faile d to construct 'Blob': The "endings" property must be either "transparent" or "n ative".. 79 PASS new Blob({length: 0}, {endings:'illegal'}) threw exception TypeError: Faile d to construct 'Blob': The "endings" property must be either "transparent" or "n ative"..
77 PASS new Blob(throwingSequence) threw exception Error: Misbehaving property. 80 PASS new Blob(throwingSequence) threw exception Error: Misbehaving property.
78 PASS successfullyParsed is true 81 PASS successfullyParsed is true
79 82
80 TEST COMPLETE 83 TEST COMPLETE
81 84
OLDNEW
« 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