ladybird/Tests/LibWeb/Text/expected/FileAPI/filereader-basic.txt
Shannon Booth 77d32fcb5f LibWeb: Add an initial implementation for Web::FileAPI::FileReader
Some steps are still to be implemented, namely:
 * Properly aborting the read algorithm
 * Handling BinaryString type properly
 * Setting error on any error

But as it stands, this is enough functionality for the basic case of
reading the contents of a blob using the FileReader API.
2023-09-17 16:37:31 -06:00

3 lines
265 B
Text

1: readAsText(): 'This is some data to be read! 🦬' error: 'null'
2: readAsDataURL(): 'data:application/octet-stream;base64,VGhpcyBpcyBzb21lIGRhdGEgdG8gYmUgcmVhZCEg8J+mrA==' error: 'null'
3: readAsArrayBuffer(): 'This is some data to be read! 🦬' error: 'null'