Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: LayoutTests/fast/files/blob-close-read-expected.txt

Issue 157363003: Implement Blob.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 sliced.size is 14
20 PASS result is "23456789abcdef"
21 PASS readAsText() completed
22 PASS sliced.size is 14
23 PASS successfullyParsed is true
24
25 TEST COMPLETE
26
OLDNEW
« no previous file with comments | « LayoutTests/fast/files/blob-close-read.html ('k') | LayoutTests/fast/files/blob-close-revoke.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698