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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/files/blob-close-read-expected.txt
diff --git a/LayoutTests/fast/files/blob-close-read-expected.txt b/LayoutTests/fast/files/blob-close-read-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..7d53ff07973e25fe99070501986c323398502e56
--- /dev/null
+++ b/LayoutTests/fast/files/blob-close-read-expected.txt
@@ -0,0 +1,26 @@
+Test the Blob.close() method, reading.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Testing that the reading of closed Blobs fail.
+PASS blob.close(); blob.size is 0
+PASS reader.readAsArrayBuffer(blob) threw exception InvalidStateError: Failed to execute 'readAsArrayBuffer' on 'FileReader': Blob has been closed..
+PASS reader.readAsBinaryString(blob) threw exception InvalidStateError: Failed to execute 'readAsBinaryString' on 'FileReader': Blob has been closed..
+PASS reader.readAsText(blob) threw exception InvalidStateError: Failed to execute 'readAsText' on 'FileReader': Blob has been closed..
+PASS reader.readAsDataURL(blob) threw exception InvalidStateError: Failed to execute 'readAsDataURL' on 'FileReader': Blob has been closed..
+Testing that ongoing async reads aren't interrupted by close()
+PASS reader2.readAsArrayBuffer(blob) threw exception InvalidStateError: Failed to execute 'readAsArrayBuffer' on 'FileReader': Blob has been closed..
+PASS blob.size is 0
+PASS FileReader loaded: 0123456789abcdef
+PASS readAsText() completed
+PASS blob.size is 0
+Testing that sliced reads aren't affected by close() on 'parent' Blob.
+PASS sliced.size is 14
+PASS result is "23456789abcdef"
+PASS readAsText() completed
+PASS sliced.size is 14
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« 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