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

Side by Side Diff: LayoutTests/fast/files/file-reader-detached-no-crash-expected.txt

Issue 399863002: Gracefully handle FileReader() read operations when in a detached state. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Throw AbortError (instead of InvalidStateError.) Created 6 years, 5 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 main frame - has 1 onunload handler(s)
2 Accessing FileReader when in a detached state.
3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
5
6
7 PASS fileReader.readAsArrayBuffer(new File(['hello'], 'world.html')) threw excep tion AbortError: Failed to execute 'readAsArrayBuffer' on 'FileReader': Reading from a Document-detached FileReader is not supported..
8 PASS successfullyParsed is true
9
10 TEST COMPLETE
11
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698