[
https://issues.apache.org/jira/browse/CB-3481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865852#comment-13865852
]
ASF subversion and git services commented on CB-3481:
-----------------------------------------------------
Commit ccf92cfe72e359e213ef562c4e86db0d67228e9b in branch refs/heads/master
from [~ldeluca]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=ccf92cf ]
CB-3481: Fixed the compass not supported issue
- added a new jasmine test to check if the compass hardware is supported
- added a custom matcher that trys to run a compass command, if a
COMPASS_NOT_SUPPORTED error is caught then the device doesn't support
compass.
- on failure of the hardware check, none of the other compass tests are
ran and a friendly message is shown to the user
> MobileSpec - Compass test fails on all tests when device doesn't have compass
> support
> -------------------------------------------------------------------------------------
>
> Key: CB-3481
> URL: https://issues.apache.org/jira/browse/CB-3481
> Project: Apache Cordova
> Issue Type: Test
> Components: mobile-spec
> Affects Versions: 2.7.0
> Reporter: Lisa Seacat DeLuca
> Assignee: Lisa Seacat DeLuca
> Priority: Minor
> Labels: compass, test
> Fix For: 3.4.0
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> When the compass hardware is not supported on a device all of the compass
> related tests will fail. Rather than fail them all, fail the hardware check
> and give the user a helpful message as to why the test failed.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)