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

Angela Fowler commented on CB-7785:
-----------------------------------

Regarding test "compass.hardwarecheck is compass supported" :
the CompassProxy.js  getHeading function creates a deviceCompass using
Windows.Devices.Sensors.Compass.getDefault
An event listener "onReadingChanged" is added to the compass.
The report interval is 16 ms.
http://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.sensors.compass.readingchanged.aspx

The function "onReadingChanged" is never called and the callback times out 
(jasmine.js DEFAULT_TIMEOUT_INTERVAL 5000 ms).

According to the docs, compass is supported on Windows 8
https://github.com/apache/cordova-plugin-device-orientation/blob/r0.3.9/doc/index.md

> device-orientation compass specs failing async callback timeout
> ---------------------------------------------------------------
>
>                 Key: CB-7785
>                 URL: https://issues.apache.org/jira/browse/CB-7785
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: mobile-spec, Windows 8
>    Affects Versions: 3.6.3
>         Environment: Visual Studio emulator and RT device
>            Reporter: Angela Fowler
>            Assignee: Jesse MacFadyen
>            Priority: Minor
>         Attachments: device-orientation-failures.png
>
>
> compass.spec.1 and compass.spec.2 failing (see correction below)
>         it("compass.spec.1 should exist", function () {
> //            console.log("In spec 1");
>             expect(navigator.compass).toBeDefined();
>         });
> The error comes from the timeoutable function of jasmine.js
>           onException(new Error('Timeout - Async callback was not invoked 
> within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.'));
> Also the log statement in spec 1 causes the log to be displayed which 
> obscures the test results.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to