You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mm...@apache.org on 2014/05/05 18:09:47 UTC
[47/49] git commit: register tests using new style
register tests using new style
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/7e632fca
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/tree/7e632fca
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/diff/7e632fca
Branch: refs/heads/cdvtest
Commit: 7e632fca55ecea64e0154367ce0239224199c6cc
Parents: 4607cba
Author: Michal Mocny <mm...@gmail.com>
Authored: Thu Apr 24 15:54:22 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon May 5 12:07:40 2014 -0400
----------------------------------------------------------------------
test/tests.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device-motion/blob/7e632fca/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index f74dc2e..daf5ff7 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -1,6 +1,6 @@
-exports.init = function() {
- eval(require('org.apache.cordova.test-framework.test').injectJasmineInterface(this, 'this'));
+// Eventually, require cdvtest plugin, for now its global
+registerAutoTests('org.apache.cordova.device-motion', function() {
describe('Accelerometer (navigator.accelerometer)', function () {
var fail = function(done) {
expect(true).toBe(false);
@@ -153,4 +153,4 @@ exports.init = function() {
});
});
});
-};
+});