You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/06/29 20:16:07 UTC

[cordova-paramedic] branch janpio-platform_verification created (now 9c6413e)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a change to branch janpio-platform_verification
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git.


      at 9c6413e  install plugin and its tests by default

This branch includes the following new commits:

     new d1f1e96  initial version of platform-verification-plugin (not dynamic, fails all)
     new 9c6413e  install plugin and its tests by default

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-paramedic] 01/02: initial version of platform-verification-plugin (not dynamic, fails all)

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-platform_verification
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git

commit d1f1e9625bb1d86ef7ff6d35f4398c833ab7497a
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Sat Jun 29 22:10:53 2019 +0200

    initial version of platform-verification-plugin (not dynamic, fails all)
---
 spec/platform-verification-plugin/package.json     | 14 ++++++++
 spec/platform-verification-plugin/plugin.xml       | 26 ++++++++++++++
 .../tests/package.json                             | 11 ++++++
 spec/platform-verification-plugin/tests/plugin.xml | 29 +++++++++++++++
 spec/platform-verification-plugin/tests/tests.js   | 42 ++++++++++++++++++++++
 5 files changed, 122 insertions(+)

diff --git a/spec/platform-verification-plugin/package.json b/spec/platform-verification-plugin/package.json
new file mode 100644
index 0000000..9f666af
--- /dev/null
+++ b/spec/platform-verification-plugin/package.json
@@ -0,0 +1,14 @@
+{
+  "name": "platform-verification-plugin",
+  "version": "1.0.0",
+  "description": "",
+  "main": "index.js",
+  "directories": {
+    "test": "tests"
+  },
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "",
+  "license": ""
+}
diff --git a/spec/platform-verification-plugin/plugin.xml b/spec/platform-verification-plugin/plugin.xml
new file mode 100644
index 0000000..549ad0a
--- /dev/null
+++ b/spec/platform-verification-plugin/plugin.xml
@@ -0,0 +1,26 @@
+<?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:android="http://schemas.android.com/apk/res/android"
+    id="platform-verification-plugin"
+    version="0.0.1">
+    <name>Platform Verification Plugin</name>
+</plugin>
diff --git a/spec/platform-verification-plugin/tests/package.json b/spec/platform-verification-plugin/tests/package.json
new file mode 100644
index 0000000..b290ec1
--- /dev/null
+++ b/spec/platform-verification-plugin/tests/package.json
@@ -0,0 +1,11 @@
+{
+  "name": "platform-verification-plugin-tests",
+  "version": "1.0.0",
+  "description": "",
+  "main": "tests.js",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "author": "",
+  "license": "Apache-2.0"
+}
diff --git a/spec/platform-verification-plugin/tests/plugin.xml b/spec/platform-verification-plugin/tests/plugin.xml
new file mode 100644
index 0000000..c894eb5
--- /dev/null
+++ b/spec/platform-verification-plugin/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"
+    xmlns:android="http://schemas.android.com/apk/res/android"
+    id="platform-verification-plugin.tests"
+    version="0.0.1">
+    <name>Cordova Testable Plugin Tests</name>
+    <js-module src="tests.js" name="tests">
+    </js-module>
+    <dependency id="cordova-plugin-device" />
+</plugin>
diff --git a/spec/platform-verification-plugin/tests/tests.js b/spec/platform-verification-plugin/tests/tests.js
new file mode 100644
index 0000000..f579333
--- /dev/null
+++ b/spec/platform-verification-plugin/tests/tests.js
@@ -0,0 +1,42 @@
+/*
+ *
+ * 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.
+ *
+*/
+
+/* eslint-env jasmine */
+
+exports.defineAutoTests = function () {
+    describe('Platform-Verification: windows.device', function () {
+
+        it('.platform should be correct', function () {
+            expect(window.device.platform).toEqual('foo');
+        });
+
+        it('.version should be correct', function () {
+            expect(window.device.version).toEqual('1.2.3');
+        });
+
+        it('.model should be correct', function () {
+            expect(window.device.model).toEqual('bar');
+        });
+
+    });
+};
+
+exports.defineManualTests = function () {};


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-paramedic] 02/02: install plugin and its tests by default

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-platform_verification
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git

commit 9c6413e70340165131a3725c8db4c77d707771d5
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Sat Jun 29 22:15:56 2019 +0200

    install plugin and its tests by default
---
 lib/ParamedicApp.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/ParamedicApp.js b/lib/ParamedicApp.js
index cbffa6c..4f07251 100644
--- a/lib/ParamedicApp.js
+++ b/lib/ParamedicApp.js
@@ -80,6 +80,9 @@ class ParamedicApp {
             additionalPlugins.push(path.join(__dirname, '..', 'ci-plugin'));
         }
 
+        additionalPlugins.push(path.join(__dirname, '..', 'spec/platform-verification-plugin'));
+        additionalPlugins.push(path.join(__dirname, '..', 'spec/platform-verification-plugin/tests'));
+
         pluginsManager.installPlugins(additionalPlugins);
     }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org