Bug 69685 - [FileAPI] FileReader required arguments
Summary: [FileAPI] FileReader required arguments
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 19:08 PDT by Mark Pilgrim (Google)
Modified: 2018-07-09 21:41 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.38 KB, patch)
2011-10-07 19:09 PDT, Mark Pilgrim (Google)
abarth: review-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2011-10-07 19:08:18 PDT
According to http://dev.w3.org/2006/webapi/FileAPI/#FileReader-interface , the following methods of FileReader have a required parameter, blob:

readAsArrayBuffer
readAsBinaryString
readAsText
readAsDataURL

This test calls these methods without the required parameter and logs the result. Expected result: TypeError (not enough arguments)

WebKit passes this test.
Comment 1 Mark Pilgrim (Google) 2011-10-07 19:09:16 PDT
Created attachment 110241 [details]
Patch
Comment 2 Adam Barth 2011-10-14 23:00:04 PDT
Comment on attachment 110241 [details]
Patch

This is redundant with http://trac.webkit.org/browser/trunk/LayoutTests/fast/files/not-enough-arguments.html