cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [2/2] spec commit: [CB-3220] Fixed CompassHeading test for no params.
Date Mon, 29 Apr 2013 14:02:50 GMT
[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/c004cd35
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/c004cd35
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/c004cd35

Branch: refs/heads/2.7.x
Commit: c004cd354ecd95f31c12b36ee2dcabc13c8685cb
Parents: 9c5c087
Author: Max Woghiren <max.woghiren@gmail.com>
Authored: Tue Apr 23 15:26:33 2013 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Mon Apr 29 10:02:19 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/c004cd35/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);
         });
 


Mime
View raw message