2 Test reading a non-existent file as array buffer
6 error name: NotFoundError
9 Test reading a non-existent file as binary string
13 error name: NotFoundError
15 Received loadend event
16 Test reading a non-existent file as text
20 error name: NotFoundError
22 Received loadend event
23 Test reading a non-existent file as data URL
27 error name: NotFoundError
29 Received loadend event
30 Test reading an empty file as array buffer
32 Received loadstart event
38 Received loadend event
39 Test reading an empty file as binary string
41 Received loadstart event
47 Received loadend event
48 Test reading an empty file as text
50 Received loadstart event
56 Received loadend event
57 Test reading an empty file as data URL
59 Received loadstart event
65 Received loadend event
66 Test reading a UTF-8 file as array buffer
68 Received loadstart event
74 Received loadend event
75 Test reading a UTF-8 file as binary string
77 Received loadstart event
83 Received loadend event
84 Test reading a binary file as array buffer
86 Received loadstart event
91 result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
92 Received loadend event
93 Test reading a binary file as binary string
95 Received loadstart event
100 result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
101 Received loadend event
102 Test reading a UTF-8 file as text
104 Received loadstart event
110 Received loadend event
111 Test reading a UTF-16BE BOM file as text
113 Received loadstart event
119 Received loadend event
120 Test reading a UTF-16LE BOM file as text
122 Received loadstart event
128 Received loadend event
129 Test reading a UTF-8 BOM file as text
131 Received loadstart event
137 Received loadend event
138 Test reading a UTF-16BE file as text with UTF-16BE encoding
140 Received loadstart event
146 Received loadend event
147 Test reading a UTF-16BE BOM file as text with UTF8 encoding
149 Received loadstart event
155 Received loadend event
156 Test reading a UTF-16BE BOM file as text with invalid encoding
158 Received loadstart event
164 Received loadend event
165 Test reading a UTF-8 file as data URL
167 Received loadstart event
172 result: data:text/plain;base64,SGVsbG8=
173 Received loadend event
174 Test calling multiple concurrent read methods
176 Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs.
177 Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsBinaryString' on 'FileReader': The object is already busy reading Blobs.
178 Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsText' on 'FileReader': The object is already busy reading Blobs.
179 Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsDataURL' on 'FileReader': The object is already busy reading Blobs.
180 Received loadstart event
185 result: data:text/plain;base64,SGVsbG8=
186 Received loadend event
187 Test reading again after successful read
189 Received loadstart event
195 Received loadend event
196 readyState after recalling read method: 1
197 result after recalling read method:
198 error after recalling read method: null
199 Received loadstart event
204 result: data:text/plain;base64,SGVsbG8=
205 Received loadend event
206 Test reading again after failed read
210 error name: NotFoundError
212 Received loadend event
213 readyState after recalling read method: 1
214 result after recalling read method:
215 error after recalling read method: null
216 Received loadstart event
221 result: data:text/plain;base64,SGVsbG8=
222 Received loadend event
223 Test result before reading method
225 result before reading method: null
226 Received loadstart event
232 Received loadend event