You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/01/24 01:43:36 UTC
[jira] [Commented] (CB-4278) FileReader result unexpected initial
value
[ https://issues.apache.org/jira/browse/CB-4278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14290282#comment-14290282 ]
ASF subversion and git services commented on CB-4278:
-----------------------------------------------------
Commit 7ea51bc8b43550c88c4395a2734d47380df82aa3 in cordova-plugin-file's branch refs/heads/master from [~purplecabbage]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=7ea51bc ]
CB-4278 Added to test to verify that FileReader.result is initially null, per File API spec
> FileReader result unexpected initial value
> ------------------------------------------
>
> Key: CB-4278
> URL: https://issues.apache.org/jira/browse/CB-4278
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File
> Affects Versions: 2.9.0
> Environment: Gingerbread emulator
> Reporter: Peter
> Assignee: Jesse MacFadyen
> Priority: Minor
>
> Expected the intitial value of FileReader result should be null as per the description in the standard http://www.w3.org/TR/FileAPI/#dfn-result which says:
> "On getting, if the readyState is EMPTY (no read method has been called) then the result attribute must return null."
> My following Jasmine test fragment fails:
> {code}
> it("fr.result initial value", function() {
> var theReader = new FileReader();
> expect(theReader.result).toBe(null);
> });
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org