mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
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.
This commit is contained in:
committed by
Andrew Kaster
parent
47616210b6
commit
77d32fcb5f
Notes:
sideshowbarker
2024-07-17 06:29:49 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/77d32fcb5f Pull-request: https://github.com/SerenityOS/serenity/pull/21008 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/AtkinsSJ
3
Tests/LibWeb/Text/expected/FileAPI/filereader-basic.txt
Normal file
3
Tests/LibWeb/Text/expected/FileAPI/filereader-basic.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
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'
|
||||
Reference in New Issue
Block a user