You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/08/07 22:43:56 UTC

[2/3] git commit: CB-6966 renamed folder to tests + added nested plugin.xml

CB-6966 renamed folder to tests + added nested plugin.xml


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

Branch: refs/heads/master
Commit: 6bb38e581ed60c72cff7adaa17e9e3945d3e8221
Parents: 6c21d19
Author: Martin Gonzalez <ma...@gmail.com>
Authored: Fri Aug 1 01:09:54 2014 -0500
Committer: Martin Gonzalez <ma...@gmail.com>
Committed: Fri Aug 1 01:09:54 2014 -0500

----------------------------------------------------------------------
 test/tests.js    | 48 ------------------------------------------------
 tests/plugin.xml | 31 +++++++++++++++++++++++++++++++
 tests/tests.js   | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 79 insertions(+), 48 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/6bb38e58/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
deleted file mode 100644
index cab932b..0000000
--- a/test/tests.js
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- *
- * 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.defineAutoTests = function () {
-
-    describe('Vibration (navigator.notification.vibrate)', function () {
-        it("navigator.notification should exist", function () {
-            expect(navigator.notification).toBeDefined();
-        });
-
-        it("should contain a vibrate function", function () {
-            expect(typeof navigator.notification.vibrate).toBeDefined();
-            expect(typeof navigator.notification.vibrate).toBe("function");
-        });
-    });
-};
-
-exports.defineManualTests = function (contentEl, createActionButton) {
-//-------------------------------------------------------------------------
-// Vibrations
-//-------------------------------------------------------------------------
-
-var vibrate = function(){
-  navigator.notification.vibrate(2500);
-};
-    createActionButton('Vibrate', function () {
-        vibrate();
-        console.log("navigator.notification.vibrate(2500)");
-    });
-};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/6bb38e58/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
new file mode 100644
index 0000000..98c948e
--- /dev/null
+++ b/tests/plugin.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+
+<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
+    xmlns:rim="http://www.blackberry.com/ns/widgets"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    id="org.apache.cordova.vibration.tests"
+    version="0.3.10-dev">
+    <name>Cordova Vibration Plugin Tests</name>
+    <license>Apache 2.0</license>
+
+    <js-module src="tests.js" name="tests">
+    </js-module>
+</plugin>

http://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration/blob/6bb38e58/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
new file mode 100644
index 0000000..cab932b
--- /dev/null
+++ b/tests/tests.js
@@ -0,0 +1,48 @@
+/*
+ *
+ * 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.defineAutoTests = function () {
+
+    describe('Vibration (navigator.notification.vibrate)', function () {
+        it("navigator.notification should exist", function () {
+            expect(navigator.notification).toBeDefined();
+        });
+
+        it("should contain a vibrate function", function () {
+            expect(typeof navigator.notification.vibrate).toBeDefined();
+            expect(typeof navigator.notification.vibrate).toBe("function");
+        });
+    });
+};
+
+exports.defineManualTests = function (contentEl, createActionButton) {
+//-------------------------------------------------------------------------
+// Vibrations
+//-------------------------------------------------------------------------
+
+var vibrate = function(){
+  navigator.notification.vibrate(2500);
+};
+    createActionButton('Vibrate', function () {
+        vibrate();
+        console.log("navigator.notification.vibrate(2500)");
+    });
+};