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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/files/file-reader-detached-no-crash-expected.txt
diff --git a/LayoutTests/fast/files/file-reader-detached-no-crash-expected.txt b/LayoutTests/fast/files/file-reader-detached-no-crash-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3070bbc197d30f0e20ff0da57bf46a03d8119330
--- /dev/null
+++ b/LayoutTests/fast/files/file-reader-detached-no-crash-expected.txt
@@ -0,0 +1,11 @@
+main frame - has 1 onunload handler(s)
+Accessing FileReader when in a detached state.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS fileReader.readAsArrayBuffer(new File(['hello'], 'world.html')) threw exception AbortError: Failed to execute 'readAsArrayBuffer' on 'FileReader': Reading from a Document-detached FileReader is not supported..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698