You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2015/04/27 17:25:57 UTC
cordova-plugin-device-motion git commit: CB-8876 Introduced a small
timeout between tests
Repository: cordova-plugin-device-motion
Updated Branches:
refs/heads/master 3950ab7b6 -> dddf7e921
CB-8876 Introduced a small timeout between tests
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/dddf7e92
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/dddf7e92
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/dddf7e92
Branch: refs/heads/master
Commit: dddf7e921f22150be5bcc8f565821cc3542e81f6
Parents: 3950ab7
Author: alsorokin <al...@akvelon.com>
Authored: Mon Apr 27 16:22:37 2015 +0300
Committer: alsorokin <al...@akvelon.com>
Committed: Mon Apr 27 16:22:37 2015 +0300
----------------------------------------------------------------------
tests/tests.js | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/dddf7e92/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
index d7c5ec9..0fd6877 100644
--- a/tests/tests.js
+++ b/tests/tests.js
@@ -32,6 +32,14 @@ exports.defineAutoTests = function () {
done();
};
+ // This timeout is here to lessen the load on native accelerometer
+ // intensive use of which can lead to occasional test failures
+ afterEach(function(done) {
+ setTimeout(function() {
+ done();
+ }, 100);
+ });
+
it("accelerometer.spec.1 should exist", function () {
expect(navigator.accelerometer).toBeDefined();
});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org