File tree 3 files changed +15
-3
lines changed
FileAPI/reading-data-section
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 48
48
reader . readAsDataURL ( blob ) ;
49
49
} , 'readAsDataURL result for Blob with unspecified MIME type' ) ;
50
50
51
- </ script >
51
+ async_test ( function ( testCase ) {
52
+ var blob = new Blob ( [ ] ) ;
53
+ var reader = new FileReader ( ) ;
54
+
55
+ reader . onload = this . step_func ( function ( ) {
56
+ assert_equals ( reader . result ,
57
+ "data:application/octet-stream;base64," ) ;
58
+ testCase . done ( ) ;
59
+ } ) ;
60
+ reader . readAsDataURL ( blob ) ;
61
+ } , 'readAsDataURL result for empty Blob' ) ;
62
+
63
+ </ script >
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Last update:
16
16
- dom/events: https://github.com/web-platform-tests/wpt/tree/ab8999891c/dom/events
17
17
- encoding: https://github.com/web-platform-tests/wpt/tree/0c1b9d1622/encoding
18
18
- fetch/data-urls/resources: https://github.com/web-platform-tests/wpt/tree/7c79d998ff/fetch/data-urls/resources
19
- - FileAPI: https://github.com/web-platform-tests/wpt/tree/3b279420d4 /FileAPI
19
+ - FileAPI: https://github.com/web-platform-tests/wpt/tree/e36dbb6f00 /FileAPI
20
20
- FileAPI/file: https://github.com/web-platform-tests/wpt/tree/c01f637cca/FileAPI/file
21
21
- hr-time: https://github.com/web-platform-tests/wpt/tree/34cafd797e/hr-time
22
22
- html/webappapis/atob: https://github.com/web-platform-tests/wpt/tree/f267e1dca6/html/webappapis/atob
Original file line number Diff line number Diff line change 24
24
"path" : " fetch/data-urls/resources"
25
25
},
26
26
"FileAPI" : {
27
- "commit" : " 3b279420d40afea32506e823f9ac005448f4f3d8 " ,
27
+ "commit" : " e36dbb6f00fb59f9fc792f509194432e9e6d0b6d " ,
28
28
"path" : " FileAPI"
29
29
},
30
30
"FileAPI/file" : {
You can’t perform that action at this time.
0 commit comments