You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Peter (JIRA)" <ji...@apache.org> on 2013/07/17 03:26:48 UTC

[jira] [Created] (CB-4278) FileReader result unexpected initial value

Peter created CB-4278:
-------------------------

             Summary: FileReader result unexpected initial value
                 Key: CB-4278
                 URL: https://issues.apache.org/jira/browse/CB-4278
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaJS
    Affects Versions: 2.9.0
         Environment: Gingerbread emulator
            Reporter: Peter
            Assignee: Filip Maj
            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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira