incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Gibson (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-448) Modify non-ascii file append test to not rely on JavaScript string length
Date Thu, 05 Apr 2012 17:40:23 GMT
Modify non-ascii file append test to not rely on JavaScript string length
-------------------------------------------------------------------------

                 Key: CB-448
                 URL: https://issues.apache.org/jira/browse/CB-448
             Project: Apache Callback
          Issue Type: Bug
          Components: mobile-spec
    Affects Versions: 1.6.0
            Reporter: Becky Gibson
            Assignee: Becky Gibson


The recently added tests in file spec to test appending to files with non-ascii data compares
the JavaScript length of the string with the FileWriter.length and FileWriter.position.  This
fails on iOS because iOS encodes the string when it writes it to the file, thus the writer.length
may not match the original JavaScript string length.  I believe that as long as the data written
matches the data read back, the write is correct and the test should pass.  Will update the
test to make that comparison rather than relying on length. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message