Updated Branches: refs/heads/master 19f464086 -> d4eda5789
[CB-3220] Fixed CompassHeading test for no params. Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/d4eda578 Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d4eda578 Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d4eda578 Branch: refs/heads/master Commit: d4eda57899b0f08d611557c7c6b0a2120c060d81 Parents: 19f4640 Author: Max Woghiren <[email protected]> Authored: Tue Apr 23 15:26:33 2013 -0400 Committer: Max Woghiren <[email protected]> Committed: Tue Apr 23 15:26:33 2013 -0400 ---------------------------------------------------------------------- autotest/tests/compass.tests.js | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d4eda578/autotest/tests/compass.tests.js ---------------------------------------------------------------------- diff --git a/autotest/tests/compass.tests.js b/autotest/tests/compass.tests.js index edaced2..3b32bcd 100644 --- a/autotest/tests/compass.tests.js +++ b/autotest/tests/compass.tests.js @@ -79,9 +79,10 @@ describe('Compass (navigator.compass)', function () { it("compass.spec.8 should be able to create a new CompassHeading instance with no parameters", function() { var h = new CompassHeading(); - expect(h.magneticHeading).toBeDefined(); - expect(h.trueHeading).toBeDefined(); - expect(h.headingAccuracy).toBeDefined(); + expect(h).toBeDefined(); + expect(h.magneticHeading).toBeUndefined(); + expect(h.trueHeading).toBeUndefined(); + expect(h.headingAccuracy).toBeUndefined(); expect(typeof h.timestamp == 'number').toBe(true); });
