cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Ginchereau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9498) FileReader.prototype.readAsText runs malfunctionnally in mobilespec
Date Thu, 05 Nov 2015 17:59:27 GMT

     [ https://issues.apache.org/jira/browse/CB-9498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Ginchereau updated CB-9498:
---------------------------------
    Labels: Android  (was: )

> FileReader.prototype.readAsText runs malfunctionnally in mobilespec
> -------------------------------------------------------------------
>
>                 Key: CB-9498
>                 URL: https://issues.apache.org/jira/browse/CB-9498
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>    Affects Versions: 4.0.1
>         Environment: Android 4.4, 5.0
>            Reporter: Dong Hanlin
>            Priority: Minor
>              Labels: Android
>
> When running tests of cordova-plugin-file with Mobilespec, file.spec.83 failed. Error
messages are listed below:
> Error: Expected null to be 'asdfasdf'.
>     at stack(file:///android_asset/www/cdvtests/jasmine-2.0.0/jasmine.js:1292:17)
>     at buildExpectationResult(file:///android_asset/www/cdvtests/jasmine-2.0.0/jasmine.js:1269:14)
>     at Spec.Env.expectationResultFactory(file:///android_asset/www/cdvtests/jasmine-2.0.0/jasmine.js:483:18)
>     at Spec.addExpectationResult(file:///android_asset/www/cdvtests/jasmine-2.0.0/jasmine.js:259:46)
>     at Expectation.addExpectationResult(file:///android_asset/www/cdvtests/jasmine-2.0.0/jasmine.js/441:21)
>     at Expectation.toBe(file:///android_asset/www/cdvtests/jasmine-2.0.0/jasmine.js:1208:12)
>     at FileReader.verifier(file:///android_asset/www/plugins/cordova-plugin-file-tests/tests.js:2190:47)
> When looking into the source code FileReader.js, it is found that readAsText is overrided.
However, this function didn't return the expected result we want. *And this problem happens
only in tests. In daily usage, such problems don't appear.*



--
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


Mime
View raw message