cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an-s...@apache.org
Subject cordova-plugin-device-motion git commit: CB-8096 Pended recently added spec.12 if accelerometer doesn't exist on the device
Date Wed, 11 Feb 2015 14:33:41 GMT
Repository: cordova-plugin-device-motion
Updated Branches:
  refs/heads/master 213cd4b76 -> d85890573


CB-8096 Pended recently added spec.12 if accelerometer doesn't exist on the device


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/commit/d8589057
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/d8589057
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/d8589057

Branch: refs/heads/master
Commit: d85890573b5c6389046d885b01a15bb107e24d41
Parents: 213cd4b
Author: Vladimir Kotikov <v-vlkoti@microsoft.com>
Authored: Wed Feb 11 17:33:20 2015 +0300
Committer: Vladimir Kotikov <v-vlkoti@microsoft.com>
Committed: Wed Feb 11 17:33:20 2015 +0300

----------------------------------------------------------------------
 tests/tests.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/d8589057/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index 84cb799..d7c5ec9 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -172,6 +172,10 @@ exports.defineAutoTests = function () {
         });
 
         it("accelerometer.spec.12 success callback should be preserved and called several
times", function (done) {
+            // skip the test if Accelerometer doesn't exist on this device
+            if (!isAccelExist) {
+              pending();
+            }
             var callbacksCallCount = 0,
                 callbacksCallTestCount = 3;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message