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

Unified Diff: LayoutTests/fast/files/file-reader-methods-illegal-arguments-expected.txt

Issue 114953006: Add missing FileReader argument typechecking. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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-methods-illegal-arguments-expected.txt
diff --git a/LayoutTests/fast/files/file-reader-methods-illegal-arguments-expected.txt b/LayoutTests/fast/files/file-reader-methods-illegal-arguments-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3aa3dd00d60d89a79c9c7483328f61e71179b623
--- /dev/null
+++ b/LayoutTests/fast/files/file-reader-methods-illegal-arguments-expected.txt
@@ -0,0 +1,37 @@
+Test FileReader methods and their argument type checking.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS fileReader.readAsArrayBuffer(); threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': 1 argument required, but only 0 present..
+PASS fileReader.readAsArrayBuffer(2); threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsArrayBuffer(null) threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsArrayBuffer(fileReader) threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsArrayBuffer([]) threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsArrayBuffer(blob, 'utf-8') did not throw exception.
+PASS fileReader.readAsArrayBuffer(blob) threw exception InvalidStateError: Failed to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy reading Blobs..
+PASS fileReader.readAsBinaryString(); threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': 1 argument required, but only 0 present..
+PASS fileReader.readAsBinaryString(2); threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsBinaryString(null) threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsBinaryString(fileReader) threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsBinaryString([]) threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsBinaryString(blob, 'utf-8') did not throw exception.
+PASS fileReader.readAsBinaryString(blob) threw exception InvalidStateError: Failed to execute 'readAsBinaryString' on 'FileReader': The object is already busy reading Blobs..
+PASS fileReader.readAsText(); threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': 1 argument required, but only 0 present..
+PASS fileReader.readAsText(2); threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsText(null) threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsText(fileReader) threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsText([]) threw exception TypeError: Failed to execute 'readAsText' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsText(blob, 'utf-8') did not throw exception.
+PASS fileReader.readAsText(blob) threw exception InvalidStateError: Failed to execute 'readAsText' on 'FileReader': The object is already busy reading Blobs..
+PASS fileReader.readAsDataURL(); threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': 1 argument required, but only 0 present..
+PASS fileReader.readAsDataURL(2); threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsDataURL(null) threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsDataURL(fileReader) threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsDataURL([]) threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': The argument is not a Blob..
+PASS fileReader.readAsDataURL(blob, 'utf-8') did not throw exception.
+PASS fileReader.readAsDataURL(blob) threw exception InvalidStateError: Failed to execute 'readAsDataURL' on 'FileReader': The object is already busy reading Blobs..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/files/file-reader-methods-illegal-arguments.html ('k') | LayoutTests/fast/files/read-file-async-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698