Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 645F6200CB4 for ; Tue, 27 Jun 2017 23:21:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 63354160BE9; Tue, 27 Jun 2017 21:21:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E8606160C02 for ; Tue, 27 Jun 2017 23:21:48 +0200 (CEST) Received: (qmail 69283 invoked by uid 500); 27 Jun 2017 21:21:46 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 68521 invoked by uid 99); 27 Jun 2017 21:21:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jun 2017 21:21:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E3686E96B8; Tue, 27 Jun 2017 21:21:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: filmaj@apache.org To: commits@cordova.apache.org Date: Tue, 27 Jun 2017 21:22:30 -0000 Message-Id: <74fd87be50424ce8a8210e7a17712dea@git.apache.org> In-Reply-To: <696619eba06c4968b825dd1d2734f82a@git.apache.org> References: <696619eba06c4968b825dd1d2734f82a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [49/51] [partial] cordova-lib git commit: Reorganized unit test directory. Changes include: - consolidate spec-cordova/ and spec-plugman/ into a single spec/ dir. - put jasmine config and helper modules in top-level spec dir. - changed package.json npm r archived-at: Tue, 27 Jun 2017 21:21:53 -0000 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson/www/spec.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson/www/spec.html b/spec-cordova/fixtures/basePkgJson/www/spec.html deleted file mode 100644 index 71f00de..0000000 --- a/spec-cordova/fixtures/basePkgJson/www/spec.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Jasmine Spec Runner - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson10/config.xml ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson10/config.xml b/spec-cordova/fixtures/basePkgJson10/config.xml deleted file mode 100644 index 7091fe2..0000000 --- a/spec-cordova/fixtures/basePkgJson10/config.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - TestBase - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson10/package.json ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson10/package.json b/spec-cordova/fixtures/basePkgJson10/package.json deleted file mode 100644 index 01a4a7e..0000000 --- a/spec-cordova/fixtures/basePkgJson10/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "testbase", - "version": "1.0.0", - "description": "", - "main": "index.js", - "dependencies": { - "cordova-plugin-camera": "^2.3.0" - }, - "devDependencies": {}, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "cordova": { - "platforms": [ - "browser" - ], - "plugins": { - "cordova-plugin-device": { - "variable_1": "value_1" - }, - "cordova-plugin-splashscreen": {}, - "cordova-plugin-camera": { - "variable_1": " ", - "variable_2": " " - } - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson10/www/css/index.css ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson10/www/css/index.css b/spec-cordova/fixtures/basePkgJson10/www/css/index.css deleted file mode 100644 index 51daa79..0000000 --- a/spec-cordova/fixtures/basePkgJson10/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson10/www/index.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson10/www/index.html b/spec-cordova/fixtures/basePkgJson10/www/index.html deleted file mode 100644 index bde5741..0000000 --- a/spec-cordova/fixtures/basePkgJson10/www/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - Hello World - - -
-

Apache Cordova

- -
- - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson10/www/js/index.js ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson10/www/js/index.js b/spec-cordova/fixtures/basePkgJson10/www/js/index.js deleted file mode 100644 index 31d9064..0000000 --- a/spec-cordova/fixtures/basePkgJson10/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson10/www/spec.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson10/www/spec.html b/spec-cordova/fixtures/basePkgJson10/www/spec.html deleted file mode 100644 index 71f00de..0000000 --- a/spec-cordova/fixtures/basePkgJson10/www/spec.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Jasmine Spec Runner - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson11/config.xml ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson11/config.xml b/spec-cordova/fixtures/basePkgJson11/config.xml deleted file mode 100644 index 1d975bb..0000000 --- a/spec-cordova/fixtures/basePkgJson11/config.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - TestBase - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson11/package.json ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson11/package.json b/spec-cordova/fixtures/basePkgJson11/package.json deleted file mode 100644 index 9ab7986..0000000 --- a/spec-cordova/fixtures/basePkgJson11/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "testbase", - "version": "1.0.0", - "description": "", - "main": "index.js", - "dependencies": { - "cordova-plugin-camera": "^2.3.0" - }, - "devDependencies": {}, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "cordova": { - "platforms": [ - "browser" - ], - "plugins": { - "cordova-plugin-splashscreen": {}, - "cordova-plugin-camera": { - "variable_1": "value_1", - "variable_3": "value_3" - } - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson11/www/css/index.css ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson11/www/css/index.css b/spec-cordova/fixtures/basePkgJson11/www/css/index.css deleted file mode 100644 index 51daa79..0000000 --- a/spec-cordova/fixtures/basePkgJson11/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson11/www/index.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson11/www/index.html b/spec-cordova/fixtures/basePkgJson11/www/index.html deleted file mode 100644 index bde5741..0000000 --- a/spec-cordova/fixtures/basePkgJson11/www/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - Hello World - - -
-

Apache Cordova

- -
- - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson11/www/js/index.js ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson11/www/js/index.js b/spec-cordova/fixtures/basePkgJson11/www/js/index.js deleted file mode 100644 index 31d9064..0000000 --- a/spec-cordova/fixtures/basePkgJson11/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson11/www/spec.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson11/www/spec.html b/spec-cordova/fixtures/basePkgJson11/www/spec.html deleted file mode 100644 index 71f00de..0000000 --- a/spec-cordova/fixtures/basePkgJson11/www/spec.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Jasmine Spec Runner - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson12/config.xml ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson12/config.xml b/spec-cordova/fixtures/basePkgJson12/config.xml deleted file mode 100644 index a343278..0000000 --- a/spec-cordova/fixtures/basePkgJson12/config.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - TestBase - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson12/package.json ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson12/package.json b/spec-cordova/fixtures/basePkgJson12/package.json deleted file mode 100644 index 6d8e08b..0000000 --- a/spec-cordova/fixtures/basePkgJson12/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "testbase", - "version": "1.0.0", - "description": "", - "main": "index.js", - "dependencies": { - "cordova-plugin-camera": "^2.3.0" - }, - "devDependencies": {}, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "cordova": { - "platforms": [ - "browser" - ], - "plugins": { - "cordova-plugin-camera": { - "variable_1": "value_1" - } - } - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson12/www/css/index.css ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson12/www/css/index.css b/spec-cordova/fixtures/basePkgJson12/www/css/index.css deleted file mode 100644 index 51daa79..0000000 --- a/spec-cordova/fixtures/basePkgJson12/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson12/www/index.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson12/www/index.html b/spec-cordova/fixtures/basePkgJson12/www/index.html deleted file mode 100644 index bde5741..0000000 --- a/spec-cordova/fixtures/basePkgJson12/www/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - Hello World - - -
-

Apache Cordova

- -
- - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson12/www/js/index.js ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson12/www/js/index.js b/spec-cordova/fixtures/basePkgJson12/www/js/index.js deleted file mode 100644 index 31d9064..0000000 --- a/spec-cordova/fixtures/basePkgJson12/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson12/www/spec.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson12/www/spec.html b/spec-cordova/fixtures/basePkgJson12/www/spec.html deleted file mode 100644 index 71f00de..0000000 --- a/spec-cordova/fixtures/basePkgJson12/www/spec.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Jasmine Spec Runner - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson13/config.xml ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson13/config.xml b/spec-cordova/fixtures/basePkgJson13/config.xml deleted file mode 100644 index e8d7783..0000000 --- a/spec-cordova/fixtures/basePkgJson13/config.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - TestBase - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson13/www/css/index.css ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson13/www/css/index.css b/spec-cordova/fixtures/basePkgJson13/www/css/index.css deleted file mode 100644 index 51daa79..0000000 --- a/spec-cordova/fixtures/basePkgJson13/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson13/www/index.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson13/www/index.html b/spec-cordova/fixtures/basePkgJson13/www/index.html deleted file mode 100644 index bde5741..0000000 --- a/spec-cordova/fixtures/basePkgJson13/www/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - Hello World - - -
-

Apache Cordova

- -
- - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson13/www/js/index.js ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson13/www/js/index.js b/spec-cordova/fixtures/basePkgJson13/www/js/index.js deleted file mode 100644 index 31d9064..0000000 --- a/spec-cordova/fixtures/basePkgJson13/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson13/www/spec.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson13/www/spec.html b/spec-cordova/fixtures/basePkgJson13/www/spec.html deleted file mode 100644 index 71f00de..0000000 --- a/spec-cordova/fixtures/basePkgJson13/www/spec.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Jasmine Spec Runner - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson15/config.xml ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson15/config.xml b/spec-cordova/fixtures/basePkgJson15/config.xml deleted file mode 100644 index 9e7b9e0..0000000 --- a/spec-cordova/fixtures/basePkgJson15/config.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - TestBase - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson15/package.json ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson15/package.json b/spec-cordova/fixtures/basePkgJson15/package.json deleted file mode 100644 index 220134e..0000000 --- a/spec-cordova/fixtures/basePkgJson15/package.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "testbase", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "cordova": { - "platforms": [ - "ios" - ], - "plugins": { - "cordova-plugin-splashscreen": {} - } - }, - "dependencies": { - "cordova-plugin-splashscreen": "^3.2.2", - "cordova-ios": "^4.2.1" - } -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson15/plugins/.svn ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson15/plugins/.svn b/spec-cordova/fixtures/basePkgJson15/plugins/.svn deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson15/www/css/index.css ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson15/www/css/index.css b/spec-cordova/fixtures/basePkgJson15/www/css/index.css deleted file mode 100644 index 51daa79..0000000 --- a/spec-cordova/fixtures/basePkgJson15/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson15/www/index.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson15/www/index.html b/spec-cordova/fixtures/basePkgJson15/www/index.html deleted file mode 100644 index bde5741..0000000 --- a/spec-cordova/fixtures/basePkgJson15/www/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - Hello World - - -
-

Apache Cordova

- -
- - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson15/www/js/index.js ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson15/www/js/index.js b/spec-cordova/fixtures/basePkgJson15/www/js/index.js deleted file mode 100644 index 31d9064..0000000 --- a/spec-cordova/fixtures/basePkgJson15/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson15/www/spec.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson15/www/spec.html b/spec-cordova/fixtures/basePkgJson15/www/spec.html deleted file mode 100644 index 71f00de..0000000 --- a/spec-cordova/fixtures/basePkgJson15/www/spec.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Jasmine Spec Runner - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson16/config.xml ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson16/config.xml b/spec-cordova/fixtures/basePkgJson16/config.xml deleted file mode 100644 index 5810e39..0000000 --- a/spec-cordova/fixtures/basePkgJson16/config.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - TestBase - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson16/package.json ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson16/package.json b/spec-cordova/fixtures/basePkgJson16/package.json deleted file mode 100644 index 0c04fba..0000000 --- a/spec-cordova/fixtures/basePkgJson16/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "testbase", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, - "author": "", - "license": "ISC", - "cordova": { - "platforms": [ - - ], - "plugins": { - - } - }, - "dependencies": { - - } -} http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson16/plugins/.svn ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson16/plugins/.svn b/spec-cordova/fixtures/basePkgJson16/plugins/.svn deleted file mode 100644 index e69de29..0000000 http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson16/www/css/index.css ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson16/www/css/index.css b/spec-cordova/fixtures/basePkgJson16/www/css/index.css deleted file mode 100644 index 51daa79..0000000 --- a/spec-cordova/fixtures/basePkgJson16/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson16/www/index.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson16/www/index.html b/spec-cordova/fixtures/basePkgJson16/www/index.html deleted file mode 100644 index bde5741..0000000 --- a/spec-cordova/fixtures/basePkgJson16/www/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - Hello World - - -
-

Apache Cordova

- -
- - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson16/www/js/index.js ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson16/www/js/index.js b/spec-cordova/fixtures/basePkgJson16/www/js/index.js deleted file mode 100644 index 31d9064..0000000 --- a/spec-cordova/fixtures/basePkgJson16/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-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson16/www/spec.html ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson16/www/spec.html b/spec-cordova/fixtures/basePkgJson16/www/spec.html deleted file mode 100644 index 71f00de..0000000 --- a/spec-cordova/fixtures/basePkgJson16/www/spec.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - Jasmine Spec Runner - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/d164a88f/spec-cordova/fixtures/basePkgJson17/config.xml ---------------------------------------------------------------------- diff --git a/spec-cordova/fixtures/basePkgJson17/config.xml b/spec-cordova/fixtures/basePkgJson17/config.xml deleted file mode 100644 index ac94d40..0000000 --- a/spec-cordova/fixtures/basePkgJson17/config.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - TestBase - - A sample Apache Cordova application that responds to the deviceready event. - - - Apache Cordova Team - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org