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

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

Issue 184473002: Sync Blob.close() behavior wrt updated spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
1 Test the Blob.close() method, basic functionality. 1 Test the Blob.close() method, basic functionality.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS blob instanceof window.Blob is true 6 PASS blob instanceof window.Blob is true
7 PASS blob.size is 5 7 PASS blob.size is 5
8 PASS blob.close(); blob.size is 0 8 PASS blob.close(); blob.size is 0
9 PASS blob.type is "text/plain" 9 PASS blob.type is "text/plain"
10 PASS sliced1.size is 3 10 PASS sliced1.size is 3
11 PASS blob.close(); blob.size is 0 11 PASS blob.close(); blob.size is 0
12 PASS blob.type is "text/plain" 12 PASS blob.type is "text/plain"
13 PASS sliced1.size is 3 13 PASS sliced1.size is 3
14 PASS sliced2.size is 1 14 PASS sliced2.size is 1
15 PASS blob.slice(2) threw exception InvalidStateError: Failed to execute 'slice' on 'Blob': Blob has been closed..
16 PASS blob.close() threw exception InvalidStateError: Failed to execute 'close' o n 'Blob': Blob has been closed..
15 PASS successfullyParsed is true 17 PASS successfullyParsed is true
16 18
17 TEST COMPLETE 19 TEST COMPLETE
18 20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698