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:39:18 UTC

[2/3] git commit: Renamed test dir, added nested plugin.xml

Renamed test dir, added nested plugin.xml


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

Branch: refs/heads/master
Commit: be8d340f31fd40e42c46b37679b1f21358acaad9
Parents: 8eb2533
Author: Staci Cooper <sm...@us.ibm.com>
Authored: Fri Aug 1 16:40:01 2014 -0400
Committer: Staci Cooper <sm...@us.ibm.com>
Committed: Fri Aug 1 16:40:01 2014 -0400

----------------------------------------------------------------------
 test/tests.js    | 55 ---------------------------------------------------
 tests/plugin.xml | 29 +++++++++++++++++++++++++++
 tests/tests.js   | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 84 insertions(+), 55 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/be8d340f/test/tests.js
----------------------------------------------------------------------
diff --git a/test/tests.js b/test/tests.js
deleted file mode 100644
index 3f785ec..0000000
--- a/test/tests.js
+++ /dev/null
@@ -1,55 +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.defineAutoTest = function () {
-    describe('Splashscreen (cordova)', function () {
-        it("splashscreen.spec.1 should exist", function () {
-            expect(navigator.splashscreen).toBeDefined();
-        });
-
-        it("splashscreen.spec.2 exec method should exist", function () {
-            expect(navigator.splashscreen.show).toBeDefined();
-            expect(typeof navigator.splashscreen.show).toBe('function');
-        });
-
-        it("splashscreen.spec.3 exec method should exist", function () {
-            expect(navigator.splashscreen.hide).toBeDefined();
-            expect(typeof navigator.splashscreen.hide).toBe('function');
-        });
-    });
-};
-
-exports.defineManualTests = function (contentEl, createActionButton) {
-    function showFor(duration) {
-        navigator.splashscreen.show();
-        window.setTimeout(function () {
-            navigator.splashscreen.hide();
-        }, 1000 * duration);
-    }
-
-    createActionButton('Show for 1 second', function () {
-        showFor(1);
-    });
-
-    createActionButton('Show for 5 seconds', function () {
-        showFor(5);
-    });
-};

http://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen/blob/be8d340f/tests/plugin.xml
----------------------------------------------------------------------
diff --git a/tests/plugin.xml b/tests/plugin.xml
new file mode 100644
index 0000000..2938677
--- /dev/null
+++ b/tests/plugin.xml
@@ -0,0 +1,29 @@
+<?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"
+    id="org.apache.cordova.splashscreen.tests"
+    version="0.3.2-dev">
+    <name>Cordova Splashscreen 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-splashscreen/blob/be8d340f/tests/tests.js
----------------------------------------------------------------------
diff --git a/tests/tests.js b/tests/tests.js
new file mode 100644
index 0000000..3f785ec
--- /dev/null
+++ b/tests/tests.js
@@ -0,0 +1,55 @@
+/*
+ *
+ * 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.defineAutoTest = function () {
+    describe('Splashscreen (cordova)', function () {
+        it("splashscreen.spec.1 should exist", function () {
+            expect(navigator.splashscreen).toBeDefined();
+        });
+
+        it("splashscreen.spec.2 exec method should exist", function () {
+            expect(navigator.splashscreen.show).toBeDefined();
+            expect(typeof navigator.splashscreen.show).toBe('function');
+        });
+
+        it("splashscreen.spec.3 exec method should exist", function () {
+            expect(navigator.splashscreen.hide).toBeDefined();
+            expect(typeof navigator.splashscreen.hide).toBe('function');
+        });
+    });
+};
+
+exports.defineManualTests = function (contentEl, createActionButton) {
+    function showFor(duration) {
+        navigator.splashscreen.show();
+        window.setTimeout(function () {
+            navigator.splashscreen.hide();
+        }, 1000 * duration);
+    }
+
+    createActionButton('Show for 1 second', function () {
+        showFor(1);
+    });
+
+    createActionButton('Show for 5 seconds', function () {
+        showFor(5);
+    });
+};