1 Test the Blob.close() method, reading.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
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 to execute 'readAsBinaryString' on 'FileReader': Blob has been closed..
10 PASS reader.readAsText(blob) threw exception InvalidStateError: Failed to execute 'readAsText' on 'FileReader': Blob has been closed..
11 PASS reader.readAsDataURL(blob) threw exception InvalidStateError: Failed to execute '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 to execute 'readAsArrayBuffer' on 'FileReader': Blob has been closed..
15 PASS FileReader loaded: 0123456789abcdef
16 PASS readAsText() completed
18 Testing that sliced reads aren't affected by close() on 'parent' Blob.
19 PASS sliced.size is 14
20 PASS result is "23456789abcdef"
21 PASS readAsText() completed
22 PASS sliced.size is 14
23 PASS successfullyParsed is true