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 17:06:54 UTC
[33/37] git commit: register tests using new style
register tests using new style
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/commit/df1b172e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/tree/df1b172e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/diff/df1b172e
Branch: refs/heads/cdvtest
Commit: df1b172edef5dc0a7d9d014579c7ef0a3e771d22
Parents: cf24b28
Author: Michal Mocny <mm...@gmail.com>
Authored: Thu Apr 24 15:54:01 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Thu Apr 24 15:54:11 2014 -0400
----------------------------------------------------------------------
test/tests.js | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-device/blob/df1b172e/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index da398f1..340590f 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', function() {
describe('Device Information (window.device)', function () {
it("should exist", function() {
expect(window.device).toBeDefined();
@@ -35,5 +35,4 @@ exports.init = function() {
expect((new String(window.device.model)).length > 0).toBe(true);
});
});
-
-};
+});