You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ka...@apache.org on 2014/04/15 02:33:06 UTC
[6/8] git commit: CB-6421: Move tests from e2e to spec
CB-6421: Move tests from e2e to spec
Part 2, move all the files and delete e2e dir.
For history of old overwritten tests in spec try
git log 5cf9d9064005ff7bc6205c05277169b929e52fb5
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/f4a9597a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/f4a9597a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/f4a9597a
Branch: refs/heads/master
Commit: f4a9597a8a4394ca6e943c285e1ad8eab5a31fd7
Parents: fde755f
Author: Mark Koudritsky <ka...@gmail.com>
Authored: Tue Apr 8 18:27:54 2014 -0400
Committer: Mark Koudritsky <ka...@gmail.com>
Committed: Mon Apr 14 20:25:10 2014 -0400
----------------------------------------------------------------------
e2e/create.spec.js | 138 --
e2e/fixtures/base/.cordova/config.json | 22 -
e2e/fixtures/base/merges/.svn | 0
e2e/fixtures/base/platforms/.svn | 0
e2e/fixtures/base/plugins/.svn | 0
e2e/fixtures/base/www/config.xml | 14 -
e2e/fixtures/base/www/css/index.css | 115 --
e2e/fixtures/base/www/img/logo.png | Bin 21814 -> 0 bytes
e2e/fixtures/base/www/index.html | 43 -
e2e/fixtures/base/www/js/index.js | 49 -
e2e/fixtures/base/www/spec.html | 68 -
e2e/fixtures/hooks_bat/fail/fail.bat | 2 -
e2e/fixtures/hooks_bat/test/.dotted.bat | 2 -
e2e/fixtures/hooks_bat/test/07.bat | 3 -
e2e/fixtures/hooks_bat/test/1.bat | 5 -
e2e/fixtures/hooks_sh/fail/fail.sh | 1 -
e2e/fixtures/hooks_sh/test/.dotted.sh | 1 -
e2e/fixtures/hooks_sh/test/07.sh | 2 -
e2e/fixtures/hooks_sh/test/1.sh | 4 -
e2e/fixtures/platforms/android-lib/VERSION | 1 -
.../android-lib/framework/assets/www/cordova.js | 1 -
.../platforms/android/AndroidManifest.xml | 14 -
.../platforms/android/assets/www/config.xml | 14 -
.../platforms/android/assets/www/cordova.js | 1712 ------------------
.../android/assets/www/cordova_plugins.js | 3 -
.../platforms/android/assets/www/css/index.css | 115 --
.../platforms/android/assets/www/img/logo.png | Bin 21814 -> 0 bytes
.../platforms/android/assets/www/index.html | 43 -
.../platforms/android/assets/www/js/index.js | 49 -
.../platforms/android/assets/www/spec.html | 68 -
e2e/fixtures/platforms/android/build.xml | 92 -
e2e/fixtures/platforms/android/cordova/build | 35 -
.../platforms/android/cordova/check_reqs | 27 -
e2e/fixtures/platforms/android/cordova/clean | 34 -
.../platforms/android/cordova/defaults.xml | 50 -
.../platforms/android/cordova/lib/appinfo.js | 41 -
.../platforms/android/cordova/lib/build.js | 89 -
.../platforms/android/cordova/lib/check_reqs.js | 78 -
.../platforms/android/cordova/lib/clean.js | 43 -
.../platforms/android/cordova/lib/device.js | 95 -
.../platforms/android/cordova/lib/emulator.js | 337 ----
.../android/cordova/lib/install-device | 38 -
.../android/cordova/lib/install-emulator | 38 -
.../platforms/android/cordova/lib/list-devices | 28 -
.../android/cordova/lib/list-emulator-images | 29 -
.../android/cordova/lib/list-started-emulators | 29 -
.../platforms/android/cordova/lib/log.js | 43 -
.../platforms/android/cordova/lib/run.js | 124 --
.../android/cordova/lib/start-emulator | 38 -
e2e/fixtures/platforms/android/cordova/log | 33 -
e2e/fixtures/platforms/android/cordova/run | 35 -
e2e/fixtures/platforms/android/cordova/version | 25 -
e2e/fixtures/platforms/android/local.properties | 10 -
.../platforms/android/proguard-project.txt | 20 -
.../platforms/android/project.properties | 14 -
.../android/res/drawable-hdpi/icon.png | Bin 6080 -> 0 bytes
.../android/res/drawable-ldpi/icon.png | Bin 3096 -> 0 bytes
.../android/res/drawable-mdpi/icon.png | Bin 4090 -> 0 bytes
.../android/res/drawable-xhdpi/icon.png | Bin 7685 -> 0 bytes
.../platforms/android/res/drawable/icon.png | Bin 7685 -> 0 bytes
.../platforms/android/res/values/strings.xml | 4 -
.../platforms/android/res/xml/config.xml | 18 -
.../android/src/org/testing/TestBase.java | 37 -
e2e/fixtures/plugins/fake1/plugin.xml | 10 -
e2e/helpers.js | 46 -
e2e/hooker.spec.js | 261 ---
e2e/platform.spec.js | 108 --
e2e/plugin.spec.js | 68 -
spec/create.spec.js | 138 ++
spec/fixtures/base/.cordova/config.json | 22 +
spec/fixtures/base/merges/.svn | 0
spec/fixtures/base/platforms/.svn | 0
spec/fixtures/base/plugins/.svn | 0
spec/fixtures/base/www/config.xml | 14 +
spec/fixtures/base/www/css/index.css | 115 ++
spec/fixtures/base/www/img/logo.png | Bin 0 -> 21814 bytes
spec/fixtures/base/www/index.html | 43 +
spec/fixtures/base/www/js/index.js | 49 +
spec/fixtures/base/www/spec.html | 68 +
spec/fixtures/hooks_bat/fail/fail.bat | 2 +
spec/fixtures/hooks_bat/test/.dotted.bat | 2 +
spec/fixtures/hooks_bat/test/07.bat | 3 +
spec/fixtures/hooks_bat/test/1.bat | 5 +
spec/fixtures/hooks_sh/fail/fail.sh | 1 +
spec/fixtures/hooks_sh/test/.dotted.sh | 1 +
spec/fixtures/hooks_sh/test/07.sh | 2 +
spec/fixtures/hooks_sh/test/1.sh | 4 +
spec/fixtures/platforms/android-lib/VERSION | 1 +
.../android-lib/framework/assets/www/cordova.js | 1 +
.../platforms/android/AndroidManifest.xml | 14 +
.../platforms/android/assets/www/config.xml | 14 +
.../platforms/android/assets/www/cordova.js | 1712 ++++++++++++++++++
.../android/assets/www/cordova_plugins.js | 3 +
.../platforms/android/assets/www/css/index.css | 115 ++
.../platforms/android/assets/www/img/logo.png | Bin 0 -> 21814 bytes
.../platforms/android/assets/www/index.html | 43 +
.../platforms/android/assets/www/js/index.js | 49 +
.../platforms/android/assets/www/spec.html | 68 +
spec/fixtures/platforms/android/build.xml | 92 +
spec/fixtures/platforms/android/cordova/build | 35 +
.../platforms/android/cordova/check_reqs | 27 +
spec/fixtures/platforms/android/cordova/clean | 34 +
.../platforms/android/cordova/defaults.xml | 50 +
.../platforms/android/cordova/lib/appinfo.js | 41 +
.../platforms/android/cordova/lib/build.js | 89 +
.../platforms/android/cordova/lib/check_reqs.js | 78 +
.../platforms/android/cordova/lib/clean.js | 43 +
.../platforms/android/cordova/lib/device.js | 95 +
.../platforms/android/cordova/lib/emulator.js | 337 ++++
.../android/cordova/lib/install-device | 38 +
.../android/cordova/lib/install-emulator | 38 +
.../platforms/android/cordova/lib/list-devices | 28 +
.../android/cordova/lib/list-emulator-images | 29 +
.../android/cordova/lib/list-started-emulators | 29 +
.../platforms/android/cordova/lib/log.js | 43 +
.../platforms/android/cordova/lib/run.js | 124 ++
.../android/cordova/lib/start-emulator | 38 +
spec/fixtures/platforms/android/cordova/log | 33 +
spec/fixtures/platforms/android/cordova/run | 35 +
spec/fixtures/platforms/android/cordova/version | 25 +
.../fixtures/platforms/android/local.properties | 10 +
.../platforms/android/proguard-project.txt | 20 +
.../platforms/android/project.properties | 14 +
.../android/res/drawable-hdpi/icon.png | Bin 0 -> 6080 bytes
.../android/res/drawable-ldpi/icon.png | Bin 0 -> 3096 bytes
.../android/res/drawable-mdpi/icon.png | Bin 0 -> 4090 bytes
.../android/res/drawable-xhdpi/icon.png | Bin 0 -> 7685 bytes
.../platforms/android/res/drawable/icon.png | Bin 0 -> 7685 bytes
.../platforms/android/res/values/strings.xml | 4 +
.../platforms/android/res/xml/config.xml | 18 +
.../android/src/org/testing/TestBase.java | 37 +
spec/fixtures/plugins/fake1/plugin.xml | 10 +
spec/helpers.js | 46 +
spec/hooker.spec.js | 261 +++
spec/platform.spec.js | 108 ++
spec/plugin.spec.js | 68 +
136 files changed, 4466 insertions(+), 4466 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/create.spec.js
----------------------------------------------------------------------
diff --git a/e2e/create.spec.js b/e2e/create.spec.js
deleted file mode 100644
index ebdfab5..0000000
--- a/e2e/create.spec.js
+++ /dev/null
@@ -1,138 +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.
-*/
-
-var helpers = require('./helpers'),
- path = require('path'),
- fs = require('fs'),
- shell = require('shelljs'),
- Q = require('q'),
- config = require('../src/config'),
- events = require('../src/events'),
- util = require('../src/util'),
- ConfigParser = require('../src/ConfigParser'),
- cordova = require('../cordova');
-
-// A utility function to generate all combinations of elements from 2 arrays.
-// crossConcat(['x', 'y'], ['1', '2', '3'])
-// -> [ 'x1', 'x2', 'x3', 'y1', 'y2', 'y3']
-var crossConcat = function(a, b, delimiter){
- var result = [];
- delimiter = delimiter || '';
- for (var i = 0; i < a.length; i++) {
- for (var j = 0; j < b.length; j++) {
- result.push(a[i] + delimiter + b[j]);
- }
- }
- return result;
-};
-
-var tmpDir = helpers.tmpDir('create_test');
-var appName = 'TestBase';
-var appId = 'org.testing';
-var project = path.join(tmpDir, appName);
-var cordovaDir = path.join(project, '.cordova');
-var configNormal = {
- lib: {
- www: {
- uri: path.join(__dirname, 'fixtures', 'base', 'www'),
- version: "testCordovaCreate",
- id: appName
- }
- }
- };
-var configSymlink = {
- lib: {
- www: {
- uri: path.join(__dirname, 'fixtures', 'base'), // "create" should copy or link the www child of this dir and not the dir itself.
- link: true
- }
- }
- };
-
-
-describe('create end-to-end', function() {
-
- beforeEach(function() {
- shell.rm('-rf', project);
- });
- afterEach(function() {
- process.chdir(path.join(__dirname, '..')); // Needed to rm the dir on Windows.
- shell.rm('-rf', tmpDir);
- });
-
- function checkProject() {
- // Check if top level dirs exist.
- var dirs = ['hooks', 'platforms', 'merges', 'plugins', 'www'];
- dirs.forEach(function(d) {
- expect(path.join(project, d)).toExist();
- });
-
- expect(path.join(project, 'hooks', 'README.md')).toExist();
-
- // Check if config files exist.
- expect(path.join(project, 'www', 'index.html')).toExist();
-
- // Check that www/config.xml was updated.
- var configXml = new ConfigParser(path.join(project, 'www', 'config.xml'));
- expect(configXml.packageName()).toEqual(appId);
-
- // TODO (kamrik): check somehow that we got the right config.xml from the fixture and not some place else.
- // expect(configXml.name()).toEqual('TestBase');
- }
-
- var results;
- events.on('results', function(res) { results = res; });
-
- it('should successfully run with regular config', function(done) {
- // Call cordova create with no args, should return help.
- cordova.raw.create()
- .then(function() {
- expect(results).toMatch(/synopsis/gi);
- })
- .then(function() {
- // Create a real project
- return cordova.raw.create(project, appId, appName, configNormal);
- })
- .then(checkProject)
- .fail(function(err) {
- console.log(err);
- expect(err).toBeUndefined();
- })
- .fin(done);
- });
-
- it('should successfully run with symlinked www', function(done) {
- // Call cordova create with no args, should return help.
- cordova.raw.create(project, appId, appName, configSymlink)
- .then(checkProject)
- .then(function() {
- // Check that www is really a symlink
- expect(fs.lstatSync(path.join(project, 'www')).isSymbolicLink()).toBe(true);
- })
- .fail(function(err) {
- if(process.platform.slice(0, 3) == 'win') {
- // Allow symlink error if not in admin mode
- expect(err.message).toBe("Symlinks on Windows require Administrator privileges");
- } else {
- expect(err).toBeUndefined();
- }
- })
- .fin(done);
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/.cordova/config.json
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/.cordova/config.json b/e2e/fixtures/base/.cordova/config.json
deleted file mode 100644
index 662fc9d..0000000
--- a/e2e/fixtures/base/.cordova/config.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "id": "org.testing",
- "name":"TestBase",
- "lib": {
- "android": {
- "uri": "/some/junk/path",
- "version": "dev",
- "id": "cordova-android-dev"
- },
- "ios": {
- "uri": "/some/junk/path",
- "version": "dev",
- "id": "cordova-ios-dev"
- },
- "wp8": {
- "uri": "/some/junk/path",
- "version": "dev",
- "id": "cordova-wp8-dev"
- }
- }
-}
-
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/merges/.svn
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/merges/.svn b/e2e/fixtures/base/merges/.svn
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/platforms/.svn
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/platforms/.svn b/e2e/fixtures/base/platforms/.svn
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/plugins/.svn
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/plugins/.svn b/e2e/fixtures/base/plugins/.svn
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/www/config.xml
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/www/config.xml b/e2e/fixtures/base/www/config.xml
deleted file mode 100644
index 9e7b9e0..0000000
--- a/e2e/fixtures/base/www/config.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<widget id="org.testing" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
- <name>TestBase</name>
- <description>
- A sample Apache Cordova application that responds to the deviceready event.
- </description>
- <author email="dev@cordova.apache.org" href="http://cordova.io">
- Apache Cordova Team
- </author>
- <content src="index.html" />
- <access origin="*" />
- <preference name="fullscreen" value="true" />
- <preference name="webviewbounce" value="true" />
-</widget>
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/www/css/index.css
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/www/css/index.css b/e2e/fixtures/base/www/css/index.css
deleted file mode 100644
index 51daa79..0000000
--- a/e2e/fixtures/base/www/css/index.css
+++ /dev/null
@@ -1,115 +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.
- */
-* {
- -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
-}
-
-body {
- -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
- -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
- -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
- background-color:#E4E4E4;
- background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
- background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
- background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
- background-image:-webkit-gradient(
- linear,
- left top,
- left bottom,
- color-stop(0, #A7A7A7),
- color-stop(0.51, #E4E4E4)
- );
- background-attachment:fixed;
- font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
- font-size:12px;
- height:100%;
- margin:0px;
- padding:0px;
- text-transform:uppercase;
- width:100%;
-}
-
-/* Portrait layout (default) */
-.app {
- background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
- position:absolute; /* position in the center of the screen */
- left:50%;
- top:50%;
- height:50px; /* text area height */
- width:225px; /* text area width */
- text-align:center;
- padding:180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
- margin:-115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
- /* offset horizontal: half of text area width */
-}
-
-/* Landscape layout (with min-width) */
-@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
- .app {
- background-position:left center;
- padding:75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
- margin:-90px 0px 0px -198px; /* offset vertical: half of image height */
- /* offset horizontal: half of image width and text area width */
- }
-}
-
-h1 {
- font-size:24px;
- font-weight:normal;
- margin:0px;
- overflow:visible;
- padding:0px;
- text-align:center;
-}
-
-.event {
- border-radius:4px;
- -webkit-border-radius:4px;
- color:#FFFFFF;
- font-size:12px;
- margin:0px 30px;
- padding:2px 0px;
-}
-
-.event.listening {
- background-color:#333333;
- display:block;
-}
-
-.event.received {
- background-color:#4B946A;
- display:none;
-}
-
-@keyframes fade {
- from { opacity: 1.0; }
- 50% { opacity: 0.4; }
- to { opacity: 1.0; }
-}
-
-@-webkit-keyframes fade {
- from { opacity: 1.0; }
- 50% { opacity: 0.4; }
- to { opacity: 1.0; }
-}
-
-.blink {
- animation:fade 3000ms infinite;
- -webkit-animation:fade 3000ms infinite;
-}
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/www/img/logo.png
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/www/img/logo.png b/e2e/fixtures/base/www/img/logo.png
deleted file mode 100644
index 9519e7d..0000000
Binary files a/e2e/fixtures/base/www/img/logo.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/www/index.html
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/www/index.html b/e2e/fixtures/base/www/index.html
deleted file mode 100644
index bde5741..0000000
--- a/e2e/fixtures/base/www/index.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<!--
- 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.
--->
-<html>
- <head>
- <meta charset="utf-8" />
- <meta name="format-detection" content="telephone=no" />
- <!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 -->
- <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
- <link rel="stylesheet" type="text/css" href="css/index.css" />
- <title>Hello World</title>
- </head>
- <body>
- <div class="app">
- <h1>Apache Cordova</h1>
- <div id="deviceready" class="blink">
- <p class="event listening">Connecting to Device</p>
- <p class="event received">Device is Ready</p>
- </div>
- </div>
- <script type="text/javascript" src="cordova.js"></script>
- <script type="text/javascript" src="js/index.js"></script>
- <script type="text/javascript">
- app.initialize();
- </script>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/www/js/index.js
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/www/js/index.js b/e2e/fixtures/base/www/js/index.js
deleted file mode 100644
index 31d9064..0000000
--- a/e2e/fixtures/base/www/js/index.js
+++ /dev/null
@@ -1,49 +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.
- */
-var app = {
- // Application Constructor
- initialize: function() {
- this.bindEvents();
- },
- // Bind Event Listeners
- //
- // Bind any events that are required on startup. Common events are:
- // 'load', 'deviceready', 'offline', and 'online'.
- bindEvents: function() {
- document.addEventListener('deviceready', this.onDeviceReady, false);
- },
- // deviceready Event Handler
- //
- // The scope of 'this' is the event. In order to call the 'receivedEvent'
- // function, we must explicity call 'app.receivedEvent(...);'
- onDeviceReady: function() {
- app.receivedEvent('deviceready');
- },
- // Update DOM on a Received Event
- receivedEvent: function(id) {
- var parentElement = document.getElementById(id);
- var listeningElement = parentElement.querySelector('.listening');
- var receivedElement = parentElement.querySelector('.received');
-
- listeningElement.setAttribute('style', 'display:none;');
- receivedElement.setAttribute('style', 'display:block;');
-
- console.log('Received Event: ' + id);
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/base/www/spec.html
----------------------------------------------------------------------
diff --git a/e2e/fixtures/base/www/spec.html b/e2e/fixtures/base/www/spec.html
deleted file mode 100644
index 71f00de..0000000
--- a/e2e/fixtures/base/www/spec.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<!--
- 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.
--->
-<html>
- <head>
- <title>Jasmine Spec Runner</title>
-
- <!-- jasmine source -->
- <link rel="shortcut icon" type="image/png" href="spec/lib/jasmine-1.2.0/jasmine_favicon.png">
- <link rel="stylesheet" type="text/css" href="spec/lib/jasmine-1.2.0/jasmine.css">
- <script type="text/javascript" src="spec/lib/jasmine-1.2.0/jasmine.js"></script>
- <script type="text/javascript" src="spec/lib/jasmine-1.2.0/jasmine-html.js"></script>
-
- <!-- include source files here... -->
- <script type="text/javascript" src="js/index.js"></script>
-
- <!-- include spec files here... -->
- <script type="text/javascript" src="spec/helper.js"></script>
- <script type="text/javascript" src="spec/index.js"></script>
-
- <script type="text/javascript">
- (function() {
- var jasmineEnv = jasmine.getEnv();
- jasmineEnv.updateInterval = 1000;
-
- var htmlReporter = new jasmine.HtmlReporter();
-
- jasmineEnv.addReporter(htmlReporter);
-
- jasmineEnv.specFilter = function(spec) {
- return htmlReporter.specFilter(spec);
- };
-
- var currentWindowOnload = window.onload;
-
- window.onload = function() {
- if (currentWindowOnload) {
- currentWindowOnload();
- }
- execJasmine();
- };
-
- function execJasmine() {
- jasmineEnv.execute();
- }
- })();
- </script>
- </head>
- <body>
- <div id="stage" style="display:none;"></div>
- </body>
-</html>
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_bat/fail/fail.bat
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_bat/fail/fail.bat b/e2e/fixtures/hooks_bat/fail/fail.bat
deleted file mode 100644
index a89b4c8..0000000
--- a/e2e/fixtures/hooks_bat/fail/fail.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-@ECHO OFF
-EXIT /B 1
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_bat/test/.dotted.bat
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_bat/test/.dotted.bat b/e2e/fixtures/hooks_bat/test/.dotted.bat
deleted file mode 100644
index ada7136..0000000
--- a/e2e/fixtures/hooks_bat/test/.dotted.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-@ECHO OFF
-ECHO "Dotted files in hook dirs should not be called" > dotted_hook_should_not_fire.txt
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_bat/test/07.bat
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_bat/test/07.bat b/e2e/fixtures/hooks_bat/test/07.bat
deleted file mode 100644
index a88c8c5..0000000
--- a/e2e/fixtures/hooks_bat/test/07.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-@ECHO OFF
-rem ECHO this is script 0 in %~dp0
-ECHO b >> hooks_order.txt
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_bat/test/1.bat
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_bat/test/1.bat b/e2e/fixtures/hooks_bat/test/1.bat
deleted file mode 100644
index be004c5..0000000
--- a/e2e/fixtures/hooks_bat/test/1.bat
+++ /dev/null
@@ -1,5 +0,0 @@
-@ECHO OFF
-rem ECHO this is script 1 in %~dp0
-ECHO a >> hooks_order.txt
-ECHO %1 > hooks_params.txt
-node -e "console.log(JSON.stringify(process.env, null, 2))" > hooks_env.json
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_sh/fail/fail.sh
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_sh/fail/fail.sh b/e2e/fixtures/hooks_sh/fail/fail.sh
deleted file mode 100755
index 379a4c9..0000000
--- a/e2e/fixtures/hooks_sh/fail/fail.sh
+++ /dev/null
@@ -1 +0,0 @@
-exit 1
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_sh/test/.dotted.sh
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_sh/test/.dotted.sh b/e2e/fixtures/hooks_sh/test/.dotted.sh
deleted file mode 100755
index e5fa07f..0000000
--- a/e2e/fixtures/hooks_sh/test/.dotted.sh
+++ /dev/null
@@ -1 +0,0 @@
-echo "Dotted files in hook dirs should not be called" > dotted_hook_should_not_fire.txt
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_sh/test/07.sh
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_sh/test/07.sh b/e2e/fixtures/hooks_sh/test/07.sh
deleted file mode 100755
index f410ee2..0000000
--- a/e2e/fixtures/hooks_sh/test/07.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#echo "this is script 0 in `pwd`";
-echo b >> hooks_order.txt
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/hooks_sh/test/1.sh
----------------------------------------------------------------------
diff --git a/e2e/fixtures/hooks_sh/test/1.sh b/e2e/fixtures/hooks_sh/test/1.sh
deleted file mode 100755
index 892869d..0000000
--- a/e2e/fixtures/hooks_sh/test/1.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#echo "this is script 1 in `pwd`";
-echo a >> hooks_order.txt
-echo $1 > hooks_params.txt
-node -e "console.log(JSON.stringify(process.env, null, 2))" > hooks_env.json
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/platforms/android-lib/VERSION
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android-lib/VERSION b/e2e/fixtures/platforms/android-lib/VERSION
deleted file mode 100644
index 15a2799..0000000
--- a/e2e/fixtures/platforms/android-lib/VERSION
+++ /dev/null
@@ -1 +0,0 @@
-3.3.0
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/platforms/android-lib/framework/assets/www/cordova.js
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android-lib/framework/assets/www/cordova.js b/e2e/fixtures/platforms/android-lib/framework/assets/www/cordova.js
deleted file mode 100644
index 91c51fc..0000000
--- a/e2e/fixtures/platforms/android-lib/framework/assets/www/cordova.js
+++ /dev/null
@@ -1 +0,0 @@
-This is a placeholder file.
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/platforms/android/AndroidManifest.xml
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android/AndroidManifest.xml b/e2e/fixtures/platforms/android/AndroidManifest.xml
deleted file mode 100644
index be3f245..0000000
--- a/e2e/fixtures/platforms/android/AndroidManifest.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" android:windowSoftInputMode="adjustPan" package="org.testing" xmlns:android="http://schemas.android.com/apk/res/android">
- <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
- <uses-permission android:name="android.permission.INTERNET" />
- <application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
- <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="TestBase" android:theme="@android:style/Theme.Black.NoTitleBar">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
- <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
-</manifest>
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/f4a9597a/e2e/fixtures/platforms/android/assets/www/config.xml
----------------------------------------------------------------------
diff --git a/e2e/fixtures/platforms/android/assets/www/config.xml b/e2e/fixtures/platforms/android/assets/www/config.xml
deleted file mode 100644
index 9e7b9e0..0000000
--- a/e2e/fixtures/platforms/android/assets/www/config.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version='1.0' encoding='utf-8'?>
-<widget id="org.testing" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
- <name>TestBase</name>
- <description>
- A sample Apache Cordova application that responds to the deviceready event.
- </description>
- <author email="dev@cordova.apache.org" href="http://cordova.io">
- Apache Cordova Team
- </author>
- <content src="index.html" />
- <access origin="*" />
- <preference name="fullscreen" value="true" />
- <preference name="webviewbounce" value="true" />
-</widget>