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 @@ -39,4 +39,16 @@ async_test(function(testCase) {
39
39
testCase . done ( ) ;
40
40
} ) ;
41
41
reader . readAsDataURL ( blob ) ;
42
- } , 'readAsDataURL result for Blob with unspecified MIME type' ) ;
42
+ } , 'readAsDataURL result for Blob with unspecified MIME type' ) ;
43
+
44
+ async_test ( function ( testCase ) {
45
+ var blob = new Blob ( [ ] ) ;
46
+ var reader = new FileReader ( ) ;
47
+
48
+ reader . onload = this . step_func ( function ( ) {
49
+ assert_equals ( reader . result ,
50
+ "data:application/octet-stream;base64," ) ;
51
+ testCase . done ( ) ;
52
+ } ) ;
53
+ reader . readAsDataURL ( blob ) ;
54
+ } , 'readAsDataURL result for empty Blob' ) ;
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/1e432c4550 /FileAPI
19
+ - FileAPI: https://github.com/web-platform-tests/wpt/tree/e36dbb6f00 /FileAPI
20
20
- hr-time: https://github.com/web-platform-tests/wpt/tree/34cafd797e/hr-time
21
21
- html/webappapis/atob: https://github.com/web-platform-tests/wpt/tree/f267e1dca6/html/webappapis/atob
22
22
- html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html/webappapis/microtask-queuing
Original file line number Diff line number Diff line change 24
24
"path" : " fetch/data-urls/resources"
25
25
},
26
26
"FileAPI" : {
27
- "commit" : " 1e432c4550a1595888d7c9eb26d90895e9e7e022 " ,
27
+ "commit" : " e36dbb6f00fb59f9fc792f509194432e9e6d0b6d " ,
28
28
"path" : " FileAPI"
29
29
},
30
30
"hr-time" : {
You can’t perform that action at this time.
0 commit comments