cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [05/12] git commit: register tests using new style
Date Thu, 07 Aug 2014 19:21:20 GMT
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/master
Commit: 7e632fca55ecea64e0154367ce0239224199c6cc
Parents: 4607cba
Author: Michal Mocny <mmocny@gmail.com>
Authored: Thu Apr 24 15:54:22 2014 -0400
Committer: Michal Mocny <mmocny@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() {
       });
     });
   });
-};
+});


Mime
View raw message