You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2013/10/11 20:27:30 UTC

spec commit: CB-5012 fix accel numbering for debugging

Updated Branches:
  refs/heads/master 3cfe78157 -> 05685426b


CB-5012 fix accel numbering for debugging


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/05685426
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/05685426
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/05685426

Branch: refs/heads/master
Commit: 05685426ba118d8c1f9c5aeb3861ed8e30faa672
Parents: 3cfe781
Author: James Jong <wj...@gmail.com>
Authored: Fri Oct 11 14:26:42 2013 -0400
Committer: James Jong <wj...@gmail.com>
Committed: Fri Oct 11 14:26:42 2013 -0400

----------------------------------------------------------------------
 autotest/tests/accelerometer.tests.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/05685426/autotest/tests/accelerometer.tests.js
----------------------------------------------------------------------
diff --git a/autotest/tests/accelerometer.tests.js b/autotest/tests/accelerometer.tests.js
index d758473..d78df3f 100644
--- a/autotest/tests/accelerometer.tests.js
+++ b/autotest/tests/accelerometer.tests.js
@@ -108,11 +108,11 @@ describe('Accelerometer (navigator.accelerometer)', function () {
             navigator.accelerometer.clearWatch(id);
         });
 
-        it("accelerometer.spec.2 should exist", function() {
+        it("accelerometer.spec.6 should exist", function() {
             expect(navigator.accelerometer.watchAcceleration).toBeDefined();
             expect(typeof navigator.accelerometer.watchAcceleration == 'function').toBe(true);
         });
-        it("accelerometer.spec.3 success callback should be called with an Acceleration object", function() {
+        it("accelerometer.spec.7 success callback should be called with an Acceleration object", function() {
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a).toBeDefined();
                     expect(a.x).toBeDefined();
@@ -137,7 +137,7 @@ describe('Accelerometer (navigator.accelerometer)', function () {
             });
         });
 
-        it("accelerometer.spec.4 success callback Acceleration object should have (reasonable) values for x, y and z expressed in m/s^2", function() {
+        it("accelerometer.spec.8 success callback Acceleration object should have (reasonable) values for x, y and z expressed in m/s^2", function() {
             var reasonableThreshold = 15;
             var win = jasmine.createSpy().andCallFake(function(a) {
                     expect(a.x).toBeLessThan(reasonableThreshold);
@@ -160,7 +160,7 @@ describe('Accelerometer (navigator.accelerometer)', function () {
             });
         });
 
-        it("accelerometer.spec.5 success callback Acceleration object should return a recent timestamp", function() {
+        it("accelerometer.spec.9 success callback Acceleration object should return a recent timestamp", function() {
             var veryRecently = (new Date()).getTime();
             // Need to check that dates returned are not vastly greater than a recent time stamp.
             // In case the timestamps returned are ridiculously high
@@ -184,7 +184,7 @@ describe('Accelerometer (navigator.accelerometer)', function () {
     });
 
     describe("clearWatch", function() {
-        it("accelerometer.spec.2 should exist", function() {
+        it("accelerometer.spec.10 should exist", function() {
             expect(navigator.accelerometer.clearWatch).toBeDefined();
             expect(typeof navigator.accelerometer.clearWatch == 'function').toBe(true);
         });