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:02:22 UTC

[1/2] git commit: Changing cdvtest format to use module exports

Repository: cordova-plugin-contacts
Updated Branches:
  refs/heads/cdvtest a218a326b -> ab0bf0485


Changing cdvtest format to use module exports


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/ab0bf048
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/ab0bf048
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/ab0bf048

Branch: refs/heads/cdvtest
Commit: ab0bf048569106d8af8988d092d60768ec165e80
Parents: aa3f885
Author: Michal Mocny <mm...@gmail.com>
Authored: Mon May 5 11:11:17 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon May 5 12:01:42 2014 -0400

----------------------------------------------------------------------
 test/tests.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/ab0bf048/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index 692acfa..91d6167 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -1,6 +1,4 @@
-// Eventually, require cdvtest plugin, for now its global
-
-registerAutoTests('org.apache.cordova.contacts', function() {
+exports.defineAutoTests = function() {
   // global to store a contact so it doesn't have to be created or retrieved multiple times
   // all of the setup/teardown test methods can reference the following variables to make sure to do the right cleanup
   var gContactObj = null;
@@ -368,4 +366,4 @@ registerAutoTests('org.apache.cordova.contacts', function() {
           });
       });
   });
-});
+};


[2/2] git commit: register tests using new style

Posted by mm...@apache.org.
register tests using new style


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/aa3f8859
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/aa3f8859
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/aa3f8859

Branch: refs/heads/cdvtest
Commit: aa3f8859adf636742e02e6927944df8004b19fc7
Parents: a218a32
Author: Michal Mocny <mm...@gmail.com>
Authored: Thu Apr 24 15:53:14 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Mon May 5 12:01:42 2014 -0400

----------------------------------------------------------------------
 test/tests.js | 26 +++-----------------------
 1 file changed, 3 insertions(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/aa3f8859/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
index 78b61d6..692acfa 100644
--- a/test/tests.js
+++ b/test/tests.js
@@ -1,26 +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.
- *
-*/
+// Eventually, require cdvtest plugin, for now its global
 
-exports.init = function() {
-  eval(require('org.apache.cordova.test-framework.test').injectJasmineInterface(this, 'this'));
+registerAutoTests('org.apache.cordova.contacts', function() {
   // global to store a contact so it doesn't have to be created or retrieved multiple times
   // all of the setup/teardown test methods can reference the following variables to make sure to do the right cleanup
   var gContactObj = null;
@@ -388,4 +368,4 @@ exports.init = function() {
           });
       });
   });
-}
+});