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:13:42 UTC
[45/47] git commit: register tests using new style
register tests using new style
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/commit/89c4c809
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/tree/89c4c809
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/diff/89c4c809
Branch: refs/heads/cdvtest
Commit: 89c4c809cb488848cecf11ab3e93e04bc941cf50
Parents: 075850a
Author: Michal Mocny <mm...@gmail.com>
Authored: Thu Apr 24 15:54:36 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon May 5 12:11:22 2014 -0400
----------------------------------------------------------------------
test/tests.js | 27 +++------------------------
1 file changed, 3 insertions(+), 24 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation/blob/89c4c809/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index 118d73f..1bea2f0 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -1,27 +1,6 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-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.geolocation', function() {
var fail = function (done) {
expect(true).toBe(false);
done();
@@ -135,4 +114,4 @@ exports.init = function() {
});
-};
+});