| OLD | NEW |
| 1 Test the File constructor. | 1 Test the File 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 File([], 'world.html')) instanceof window.File is true | 6 PASS (new File([], 'world.html')) instanceof window.File is true |
| 7 PASS (new File(['hello'], 'world.html')) instanceof window.File is true | 7 PASS (new File(['hello'], 'world.html')) instanceof window.File is true |
| 8 PASS (new File(['hello'], 'world.html', {})) instanceof window.File is true | 8 PASS (new File(['hello'], 'world.html', {})) instanceof window.File is true |
| 9 PASS (new File(['hello'], 'world.html', {type:'text/html'})) instanceof window.F
ile is true | 9 PASS (new File(['hello'], 'world.html', {type:'text/html'})) instanceof window.F
ile is true |
| 10 PASS (new File(['hello'], 'world.html', {type:'text/html', endings:'native'})) i
nstanceof window.File is true | |
| 11 PASS (new File(['hello'], 'world.html', {type:'text/html', endings:'transparent'
})) instanceof window.File is true | |
| 12 PASS (new File([], 'world.html')) instanceof window.File is true | 10 PASS (new File([], 'world.html')) instanceof window.File is true |
| 13 PASS (new File()) threw exception TypeError: Failed to construct 'File': 2 argum
ents required, but only 0 present.. | 11 PASS (new File()) threw exception TypeError: Failed to construct 'File': 2 argum
ents required, but only 0 present.. |
| 14 PASS (new File([])) threw exception TypeError: Failed to construct 'File': 2 arg
uments required, but only 1 present.. | 12 PASS (new File([])) threw exception TypeError: Failed to construct 'File': 2 arg
uments required, but only 1 present.. |
| 15 PASS (new File([], null)) instanceof window.File is true | 13 PASS (new File([], null)) instanceof window.File is true |
| 16 PASS (new File([], 1)) instanceof window.File is true | 14 PASS (new File([], 1)) instanceof window.File is true |
| 17 PASS (new File([], '')) instanceof window.File is true | 15 PASS (new File([], '')) instanceof window.File is true |
| 18 PASS (new File([], document)) instanceof window.File is true | 16 PASS (new File([], document)) instanceof window.File is true |
| 19 PASS new File('hello', 'world.html') threw exception TypeError: Failed to constr
uct 'File': The 1st argument is neither an array, nor does it have indexed prope
rties.. | 17 PASS new File('hello', 'world.html') threw exception TypeError: Failed to constr
uct 'File': The 1st argument is neither an array, nor does it have indexed prope
rties.. |
| 20 PASS new File(0, 'world.html') threw exception TypeError: Failed to construct 'F
ile': The 1st argument is neither an array, nor does it have indexed properties.
. | 18 PASS new File(0, 'world.html') threw exception TypeError: Failed to construct 'F
ile': The 1st argument is neither an array, nor does it have indexed properties.
. |
| 21 PASS new File(null, 'world.html') threw exception TypeError: Failed to construct
'File': The 1st argument is neither an array, nor does it have indexed properti
es.. | 19 PASS new File(null, 'world.html') threw exception TypeError: Failed to construct
'File': The 1st argument is neither an array, nor does it have indexed properti
es.. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 35 PASS (new File([toStringingObj], 'world.html')).size is 8 | 33 PASS (new File([toStringingObj], 'world.html')).size is 8 |
| 36 PASS new File([throwingObj], 'world.html') threw exception Error. | 34 PASS new File([throwingObj], 'world.html') threw exception Error. |
| 37 PASS (new File([], null)).name is 'null' | 35 PASS (new File([], null)).name is 'null' |
| 38 PASS (new File([], 12)).name is '12' | 36 PASS (new File([], 12)).name is '12' |
| 39 PASS (new File([], '')).name is '' | 37 PASS (new File([], '')).name is '' |
| 40 PASS (new File([], {})).name is '[object Object]' | 38 PASS (new File([], {})).name is '[object Object]' |
| 41 PASS (new File([], document)).name is '[object HTMLDocument]' | 39 PASS (new File([], document)).name is '[object HTMLDocument]' |
| 42 PASS (new File([], toStringingObj)).name is 'A string' | 40 PASS (new File([], toStringingObj)).name is 'A string' |
| 43 PASS (new File([], throwingObj)).name threw exception Error. | 41 PASS (new File([], throwingObj)).name threw exception Error. |
| 44 PASS (new File([], 'world.html', {unknownKey:'value'})) instanceof window.File i
s true | 42 PASS (new File([], 'world.html', {unknownKey:'value'})) instanceof window.File i
s true |
| 45 PASS new File([], 'world.html', {endings:'illegalValue'}) threw exception TypeEr
ror: Failed to construct 'File': The provided value 'illegalValue' is not a vali
d enum value of type NormalizeLineEndings.. | |
| 46 PASS new File([], 'world.html', {endings:throwingObj}) threw exception Error. | |
| 47 PASS new File([], 'world.html', {type:throwingObj}) threw exception Error. | 43 PASS new File([], 'world.html', {type:throwingObj}) threw exception Error. |
| 48 PASS new File([], 'world.html', {type:'helloĆ®'}) threw exception SyntaxError: Fa
iled to construct 'File': The 'type' property must consist of ASCII characters.. | 44 PASS new File([], 'world.html', {type:'helloĆ®'}) threw exception SyntaxError: Fa
iled to construct 'File': The 'type' property must consist of ASCII characters.. |
| 49 PASS (new File([], 'world.html', null)) instanceof window.File is true | 45 PASS (new File([], 'world.html', null)) instanceof window.File is true |
| 50 PASS (new File([], 'world.html', undefined)) instanceof window.File is true | 46 PASS (new File([], 'world.html', undefined)) instanceof window.File is true |
| 51 PASS (new File([], 'world.html', 123)) instanceof window.File threw exception Ty
peError: Failed to construct 'File': parameter 3 ('options') is not an object.. | 47 PASS (new File([], 'world.html', 123)) instanceof window.File threw exception Ty
peError: Failed to construct 'File': parameter 3 ('options') is not an object.. |
| 52 PASS (new File([], 'world.html', 123.4)) instanceof window.File threw exception
TypeError: Failed to construct 'File': parameter 3 ('options') is not an object.
. | 48 PASS (new File([], 'world.html', 123.4)) instanceof window.File threw exception
TypeError: Failed to construct 'File': parameter 3 ('options') is not an object.
. |
| 53 PASS (new File([], 'world.html', true)) instanceof window.File threw exception T
ypeError: Failed to construct 'File': parameter 3 ('options') is not an object.. | 49 PASS (new File([], 'world.html', true)) instanceof window.File threw exception T
ypeError: Failed to construct 'File': parameter 3 ('options') is not an object.. |
| 54 PASS (new File([], 'world.html', 'abc')) instanceof window.File threw exception
TypeError: Failed to construct 'File': parameter 3 ('options') is not an object.
. | 50 PASS (new File([], 'world.html', 'abc')) instanceof window.File threw exception
TypeError: Failed to construct 'File': parameter 3 ('options') is not an object.
. |
| 55 PASS (new File([], 'world.html', [])) instanceof window.File is true | 51 PASS (new File([], 'world.html', [])) instanceof window.File is true |
| 56 PASS (new File([], 'world.html', /abc/)) instanceof window.File is true | 52 PASS (new File([], 'world.html', /abc/)) instanceof window.File is true |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 PASS new File([new Blob([(new Int32Array(100)).buffer]), (new Uint8Array(100)).b
uffer, (new Float32Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buff
er], 'world.html').size is 1000 | 90 PASS new File([new Blob([(new Int32Array(100)).buffer]), (new Uint8Array(100)).b
uffer, (new Float32Array(100)).buffer, (new DataView(new ArrayBuffer(100))).buff
er], 'world.html').size is 1000 |
| 95 PASS new File([new Blob([(new Int32Array(100)).buffer]), new File([new Uint16Arr
ay(100).buffer], 'world.txt'), (new Uint8Array(100)).buffer, (new Float32Array(1
00)).buffer, (new DataView(new ArrayBuffer(100))).buffer], 'world.html').size is
1200 | 91 PASS new File([new Blob([(new Int32Array(100)).buffer]), new File([new Uint16Arr
ay(100).buffer], 'world.txt'), (new Uint8Array(100)).buffer, (new Float32Array(1
00)).buffer, (new DataView(new ArrayBuffer(100))).buffer], 'world.html').size is
1200 |
| 96 PASS new Blob([new Blob([new Int32Array(100)]), new File([new Uint16Array(100)],
'world.txt'), new Uint8Array(100), new Float32Array(100), new DataView(new Arra
yBuffer(100))]).size is 1200 | 92 PASS new Blob([new Blob([new Int32Array(100)]), new File([new Uint16Array(100)],
'world.txt'), new Uint8Array(100), new Float32Array(100), new DataView(new Arra
yBuffer(100))]).size is 1200 |
| 97 PASS new Blob([new Blob([(new Int32Array(100)).buffer]), new File([new Uint16Arr
ay(100).buffer], 'world.txt'), (new Uint8Array(100)).buffer, (new Float32Array(1
00)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size is 1200 | 93 PASS new Blob([new Blob([(new Int32Array(100)).buffer]), new File([new Uint16Arr
ay(100).buffer], 'world.txt'), (new Uint8Array(100)).buffer, (new Float32Array(1
00)).buffer, (new DataView(new ArrayBuffer(100))).buffer]).size is 1200 |
| 98 PASS new File({length: 0}, 'world.txt').size is 0 | 94 PASS new File({length: 0}, 'world.txt').size is 0 |
| 99 PASS new File({length: 1, 0: 'string'}, 'world.txt').size is 6 | 95 PASS new File({length: 1, 0: 'string'}, 'world.txt').size is 6 |
| 100 PASS successfullyParsed is true | 96 PASS successfullyParsed is true |
| 101 | 97 |
| 102 TEST COMPLETE | 98 TEST COMPLETE |
| 103 | 99 |
| OLD | NEW |