You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2012/02/08 19:47:57 UTC
git commit: Fixing small issue in compass tests
Updated Branches:
refs/heads/master 6870e9b0a -> 6fd62d488
Fixing small issue in compass tests
timestamp should be an instance of Date and not CompassHeading
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/6fd62d48
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/6fd62d48
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/6fd62d48
Branch: refs/heads/master
Commit: 6fd62d488c40ca7fb13eee0b238a9900ac196eb8
Parents: 6870e9b
Author: macdonst <si...@gmail.com>
Authored: Wed Feb 8 13:47:05 2012 -0500
Committer: macdonst <si...@gmail.com>
Committed: Wed Feb 8 13:47:08 2012 -0500
----------------------------------------------------------------------
autotest/tests/compass.tests.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/6fd62d48/autotest/tests/compass.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/compass.tests.js b/autotest/tests/compass.tests.js
index 8a0731f..3781397 100644
--- a/autotest/tests/compass.tests.js
+++ b/autotest/tests/compass.tests.js
@@ -21,7 +21,7 @@ Tests.prototype.CompassTests = function() {
ok(a.headingAccuracy !== null, "Heading object returned in getCurrentHeading success callback should have a 'headingAccuracy' property.");
ok(typeof a.headingAccuracy == 'number', "Heading object's 'headingAccuracy' property returned in getCurrentHeading success callback should be of type 'number'.");
ok(a.timestamp !== null, "Heading object returned in getCurrentHeading success callback should have a 'timestamp' property.");
- ok(a.timestamp instanceof CompassHeading, "Heading object's 'headingAccuracy' property returned in getCurrentHeading success callback should be of type 'number'.");
+ ok(a.timestamp instanceof Date, "Heading object's 'timestamp' property returned in getCurrentHeading success callback should be of type 'Date'.");
QUnit.start();
};
var fail = function() { QUnit.start(); };