chromium/third_party/blink/web_tests/fast/files/workers/worker-read-file-async-expected.txt

Received files in worker
Received a FileList
Test reading a non-existent file as array buffer
readyState: 0
Received error event
readyState: 2
error name: NotFoundError
result: null
Received loadend event
Test reading a non-existent file as binary string
readyState: 0
Received error event
readyState: 2
error name: NotFoundError
result: null
Received loadend event
Test reading a non-existent file as text
readyState: 0
Received error event
readyState: 2
error name: NotFoundError
result: null
Received loadend event
Test reading a non-existent file as data URL
readyState: 0
Received error event
readyState: 2
error name: NotFoundError
result: null
Received loadend event
Test reading an empty file as array buffer
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 0
result: 
Received loadend event
Test reading an empty file as binary string
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 0
result: 
Received loadend event
Test reading an empty file as text
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 0
result: 
Received loadend event
Test reading an empty file as data URL
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 37
result: data:application/octet-stream;base64,
Received loadend event
Test reading a UTF-8 file as array buffer
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-8 file as binary string
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a binary file as array buffer
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 9
result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
Received loadend event
Test reading a binary file as binary string
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 9
result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
Received loadend event
Test reading a UTF-8 file as text
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-16BE BOM file as text
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-16LE BOM file as text
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-8 BOM file as text
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-16BE file as text with UTF-16BE encoding
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-16BE BOM file as text with UTF8 encoding
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-16BE BOM file as text with invalid encoding
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
Test reading a UTF-8 file as data URL
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 31
result: data:text/plain;base64,SGVsbG8=
Received loadend event
Test calling multiple concurrent read methods
readyState: 0
Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs.
Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsBinaryString' on 'FileReader': The object is already busy reading Blobs.
Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsText' on 'FileReader': The object is already busy reading Blobs.
Received exception, code: 11, name: InvalidStateError, message: Failed to execute 'readAsDataURL' on 'FileReader': The object is already busy reading Blobs.
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 31
result: data:text/plain;base64,SGVsbG8=
Received loadend event
Test reading again after successful read
readyState: 0
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 5
result: Hello
Received loadend event
readyState after recalling read method: 1
result after recalling read method: null
error after recalling read method: null
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 31
result: data:text/plain;base64,SGVsbG8=
Received loadend event
Test reading again after failed read
readyState: 0
Received error event
readyState: 2
error name: NotFoundError
result: null
Received loadend event
readyState after recalling read method: 1
result after recalling read method: null
error after recalling read method: null
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 31
result: data:text/plain;base64,SGVsbG8=
Received loadend event
Test result before reading method
readyState: 0
result before reading method: null
Received loadstart event
readyState: 1
Received load event
readyState: 2
result size: 0
result: 
Received loadend event
DONE