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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 Test FileReader methods and their argument type checking.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS fileReader.readAsArrayBuffer(); threw exception TypeError: Failed to execut e 'readAsArrayBuffer' on 'FileReader': 1 argument required, but only 0 present..
7 PASS fileReader.readAsArrayBuffer(2); threw exception TypeError: Failed to execu te 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
8 PASS fileReader.readAsArrayBuffer(null) threw exception TypeError: Failed to exe cute 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
9 PASS fileReader.readAsArrayBuffer(fileReader) threw exception TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
10 PASS fileReader.readAsArrayBuffer([]) threw exception TypeError: Failed to execu te 'readAsArrayBuffer' on 'FileReader': The argument is not a Blob..
11 PASS fileReader.readAsArrayBuffer(blob, 'utf-8') did not throw exception.
12 PASS fileReader.readAsArrayBuffer(blob) threw exception InvalidStateError: Faile d to execute 'readAsArrayBuffer' on 'FileReader': The object is already busy rea ding Blobs..
13 PASS fileReader.readAsBinaryString(); threw exception TypeError: Failed to execu te 'readAsBinaryString' on 'FileReader': 1 argument required, but only 0 present ..
14 PASS fileReader.readAsBinaryString(2); threw exception TypeError: Failed to exec ute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
15 PASS fileReader.readAsBinaryString(null) threw exception TypeError: Failed to ex ecute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
16 PASS fileReader.readAsBinaryString(fileReader) threw exception TypeError: Failed to execute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
17 PASS fileReader.readAsBinaryString([]) threw exception TypeError: Failed to exec ute 'readAsBinaryString' on 'FileReader': The argument is not a Blob..
18 PASS fileReader.readAsBinaryString(blob, 'utf-8') did not throw exception.
19 PASS fileReader.readAsBinaryString(blob) threw exception InvalidStateError: Fail ed to execute 'readAsBinaryString' on 'FileReader': The object is already busy r eading Blobs..
20 PASS fileReader.readAsText(); threw exception TypeError: Failed to execute 'read AsText' on 'FileReader': 1 argument required, but only 0 present..
21 PASS fileReader.readAsText(2); threw exception TypeError: Failed to execute 'rea dAsText' on 'FileReader': The argument is not a Blob..
22 PASS fileReader.readAsText(null) threw exception TypeError: Failed to execute 'r eadAsText' on 'FileReader': The argument is not a Blob..
23 PASS fileReader.readAsText(fileReader) threw exception TypeError: Failed to exec ute 'readAsText' on 'FileReader': The argument is not a Blob..
24 PASS fileReader.readAsText([]) threw exception TypeError: Failed to execute 'rea dAsText' on 'FileReader': The argument is not a Blob..
25 PASS fileReader.readAsText(blob, 'utf-8') did not throw exception.
26 PASS fileReader.readAsText(blob) threw exception InvalidStateError: Failed to ex ecute 'readAsText' on 'FileReader': The object is already busy reading Blobs..
27 PASS fileReader.readAsDataURL(); threw exception TypeError: Failed to execute 'r eadAsDataURL' on 'FileReader': 1 argument required, but only 0 present..
28 PASS fileReader.readAsDataURL(2); threw exception TypeError: Failed to execute ' readAsDataURL' on 'FileReader': The argument is not a Blob..
29 PASS fileReader.readAsDataURL(null) threw exception TypeError: Failed to execute 'readAsDataURL' on 'FileReader': The argument is not a Blob..
30 PASS fileReader.readAsDataURL(fileReader) threw exception TypeError: Failed to e xecute 'readAsDataURL' on 'FileReader': The argument is not a Blob..
31 PASS fileReader.readAsDataURL([]) threw exception TypeError: Failed to execute ' readAsDataURL' on 'FileReader': The argument is not a Blob..
32 PASS fileReader.readAsDataURL(blob, 'utf-8') did not throw exception.
33 PASS fileReader.readAsDataURL(blob) threw exception InvalidStateError: Failed to execute 'readAsDataURL' on 'FileReader': The object is already busy reading Blo bs..
34 PASS successfullyParsed is true
35
36 TEST COMPLETE
37
OLDNEW
« 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