[
https://issues.apache.org/jira/browse/CB-7431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14115407#comment-14115407
]
ASF subversion and git services commented on CB-7431:
-----------------------------------------------------
Commit 5cb702ce2f331eb1d591e1fe2f29dd2f6b724bb3 in cordova-plugin-file's branch
refs/heads/master from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=5cb702c ]
CB-7431: Avoid calling done() twice in file.spec.109 test
Calling done twice appears to put Jasmine into some kind of bad state,
where custom matchers are no longer attached to the expect() objects.
This stops many subsequent tests from passing.
> File.spec.109 causes Jasmine2 to start failing
> ----------------------------------------------
>
> Key: CB-7431
> URL: https://issues.apache.org/jira/browse/CB-7431
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, Plugin File
> Reporter: Ian Clelland
> Assignee: Ian Clelland
> Priority: Critical
>
> The translation of file.spec.109 from mobile-spec with Jasmine 1 to
> in-plugin-tests with Jasmine 2 produced a situation in which the {{done}}
> function could be called twice inside of a single test.
> This appears to put Jasmine in some kind of internally-inconsistent state, an
> many subsequent tests fail (it appears to be all tests using custom
> matchers). This behaviour was noticed on iOS, ant not on other platforms, but
> may affect other platforms differently.
> Marked as critical because we can't continue testing iOS without this being
> resolved.
--
This message was sent by Atlassian JIRA
(v6.2#6252)