cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmo...@apache.org
Subject [2/2] git commit: register tests using new style
Date Mon, 05 May 2014 16:02:23 GMT
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 <mmocny@gmail.com>
Authored: Thu Apr 24 15:53:14 2014 -0400
Committer: Michal Mocny <mmocny@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() {
           });
       });
   });
-}
+});


Mime
View raw message