OLD | NEW |
(Empty) | |
| 1 Test the Blob.close() method, reading. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 Testing that the reading of closed Blobs fail. |
| 7 PASS blob.close(); blob.size is 0 |
| 8 PASS reader.readAsArrayBuffer(blob) threw exception InvalidStateError: Failed to
execute 'readAsArrayBuffer' on 'FileReader': Blob has been closed.. |
| 9 PASS reader.readAsBinaryString(blob) threw exception InvalidStateError: Failed t
o execute 'readAsBinaryString' on 'FileReader': Blob has been closed.. |
| 10 PASS reader.readAsText(blob) threw exception InvalidStateError: Failed to execut
e 'readAsText' on 'FileReader': Blob has been closed.. |
| 11 PASS reader.readAsDataURL(blob) threw exception InvalidStateError: Failed to exe
cute 'readAsDataURL' on 'FileReader': Blob has been closed.. |
| 12 Testing that ongoing async reads aren't interrupted by close() |
| 13 PASS reader2.readAsArrayBuffer(blob) threw exception InvalidStateError: Failed t
o execute 'readAsArrayBuffer' on 'FileReader': Blob has been closed.. |
| 14 PASS blob.size is 0 |
| 15 PASS FileReader loaded: 0123456789abcdef |
| 16 PASS readAsText() completed |
| 17 PASS blob.size is 0 |
| 18 Testing that sliced reads aren't affected by close() on 'parent' Blob. |
| 19 PASS result is "23456789abcdef" |
| 20 PASS readAsText() completed |
| 21 PASS sliced.size is 14 |
| 22 PASS successfullyParsed is true |
| 23 |
| 24 TEST COMPLETE |
| 25 |
OLD | NEW |