cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Kemp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-4894) geolocation tests fail when a device does not supportit
Date Tue, 24 Sep 2013 07:36:04 GMT

    [ https://issues.apache.org/jira/browse/CB-4894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13776080#comment-13776080
] 

David Kemp commented on CB-4894:
--------------------------------

There are two aspects to the bug:
* it wastes 40 seconds in a test set (2 tests, 20 sec each) 
* it reports incorrectly. If the platform that you are running the test on does not support
geolocation (or it is turned off) the 'correct' response is to answer getLocation() with an
error code =2 (Provider not available). To report this as a fail is wrong (or at least misleading).



                
> geolocation tests fail when a device does not supportit
> -------------------------------------------------------
>
>                 Key: CB-4894
>                 URL: https://issues.apache.org/jira/browse/CB-4894
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: mobile-spec
>    Affects Versions: 3.0.0
>         Environment: Identified with some older Android devices.
>            Reporter: David Kemp
>            Assignee: David Kemp
>            Priority: Minor
>
> The mobilespec tests wait 20 sec for win() to be called, but if a device/emulator does
not support geolocation, it calls fail() immediately - then waits the 20 seconds to report
that win was not called.

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

Mime
View raw message