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/04/24 20:30:30 UTC

[3/9] git commit: Adding project files to cordova-app-test-harness

Adding project files to cordova-app-test-harness


Project: http://git-wip-us.apache.org/repos/asf/cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-labs/commit/8be3e81e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-labs/tree/8be3e81e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-labs/diff/8be3e81e

Branch: refs/heads/cdvtest
Commit: 8be3e81ecbb05ee5c0510945da93c5963e30ccef
Parents: d0aae3c
Author: Michal Mocny <mm...@gmail.com>
Authored: Tue Apr 22 10:11:58 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Tue Apr 22 10:20:23 2014 -0400

----------------------------------------------------------------------
 cordova-app-test-harness/.gitignore                |  2 ++
 cordova-app-test-harness/config.xml                | 15 +++++++++++++++
 .../hooks/before_prepare/pre-prepare.js            | 17 +++++++++++++++++
 3 files changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/8be3e81e/cordova-app-test-harness/.gitignore
----------------------------------------------------------------------
diff --git a/cordova-app-test-harness/.gitignore b/cordova-app-test-harness/.gitignore
new file mode 100644
index 0000000..c98dbcd
--- /dev/null
+++ b/cordova-app-test-harness/.gitignore
@@ -0,0 +1,2 @@
+platforms
+plugins

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/8be3e81e/cordova-app-test-harness/config.xml
----------------------------------------------------------------------
diff --git a/cordova-app-test-harness/config.xml b/cordova-app-test-harness/config.xml
new file mode 100644
index 0000000..142dae6
--- /dev/null
+++ b/cordova-app-test-harness/config.xml
@@ -0,0 +1,15 @@
+<?xml version='1.0' encoding='utf-8'?>
+<widget id="org.apache.cordova.CordovaTests" version="0.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
+    <name>Cordova Tests</name>
+    <description>
+        Cordova Test Runner
+    </description>
+    <author>
+    </author>
+    <content src="index.html" />
+    <access origin="http://www.apache.org/*" />
+    <access origin="https://www.googleapis.com/*" />
+
+    <preference name="fullscreen" value="true" />
+    <preference name="webviewbounce" value="false" />
+</widget>

http://git-wip-us.apache.org/repos/asf/cordova-labs/blob/8be3e81e/cordova-app-test-harness/hooks/before_prepare/pre-prepare.js
----------------------------------------------------------------------
diff --git a/cordova-app-test-harness/hooks/before_prepare/pre-prepare.js b/cordova-app-test-harness/hooks/before_prepare/pre-prepare.js
new file mode 100755
index 0000000..d7a1863
--- /dev/null
+++ b/cordova-app-test-harness/hooks/before_prepare/pre-prepare.js
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+if [ -d "plugins/org.apache.cordova.test-framework" ]; then
+  exit
+fi
+
+mkdir -p plugins platforms
+
+cordova platform add android
+cordova platform add ios
+
+cordova plugin add ~/dev/cordova/cordova-labs/cordova-plugin-test-framework
+cordova plugin add ~/dev/cordova/cordova-plugin-device
+cordova plugin add ~/dev/cordova/cordova-plugin-device-motion
+cordova plugin add ~/dev/cordova/cordova-plugin-device-orientation
+cordova plugin add ~/dev/cordova/cordova-plugin-geolocation
+cordova plugin add ~/dev/cordova/cordova-plugin-vibration