1 Test FileReader methods and their argument type checking.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS fileReader.readAsArrayBuffer(); threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': 1 argument required, but only 0 present..
7 PASS fileReader.readAsArrayBuffer(2); threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'..
8 PASS fileReader.readAsArrayBuffer(null) threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'..
9 PASS fileReader.readAsArrayBuffer(fileReader) threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'..
10 PASS fileReader.readAsArrayBuffer([]) threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'..
11 PASS fileReader.readAsArrayBuffer(blob, 'utf-8') did not throw exception.
12 PASS fileReader.readAsArrayBuffer(blob) threw exception InvalidStateError: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs..
13 PASS fileReader.readAsBinaryString(); threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': 1 argument required, but only 0 present..
14 PASS fileReader.readAsBinaryString(2); threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'..
15 PASS fileReader.readAsBinaryString(null) threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'..
16 PASS fileReader.readAsBinaryString(fileReader) threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'..
17 PASS fileReader.readAsBinaryString([]) threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'..
18 PASS fileReader.readAsBinaryString(blob, 'utf-8') did not throw exception.
19 PASS fileReader.readAsBinaryString(blob) threw exception InvalidStateError: Failed to execute 'readAsBinaryString' on 'FileReader': The object is already busy reading Blobs..
20 PASS fileReader.readAsText(); threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': 1 argument required, but only 0 present..
21 PASS fileReader.readAsText(2); threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'..
22 PASS fileReader.readAsText(null) threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'..
23 PASS fileReader.readAsText(fileReader) threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'..
24 PASS fileReader.readAsText([]) threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'..
25 PASS fileReader.readAsText(blob, 'utf-8') did not throw exception.
26 PASS fileReader.readAsText(blob) threw exception InvalidStateError: Failed to execute 'readAsText' on 'FileReader': The object is already busy reading Blobs..
27 PASS fileReader.readAsDataURL(); threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': 1 argument required, but only 0 present..
28 PASS fileReader.readAsDataURL(2); threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'..
29 PASS fileReader.readAsDataURL(null) threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'..
30 PASS fileReader.readAsDataURL(fileReader) threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'..
31 PASS fileReader.readAsDataURL([]) threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'..
32 PASS fileReader.readAsDataURL(blob, 'utf-8') did not throw exception.
33 PASS fileReader.readAsDataURL(blob) threw exception InvalidStateError: Failed to execute 'readAsDataURL' on 'FileReader': The object is already busy reading Blobs..
34 PASS successfullyParsed is true