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/07/18 20:12:20 UTC

spec commit: CB-7168 Moving Device autotests to plugin (aka new-style tests)

Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 09b044043 -> 1a7809fc2


CB-7168 Moving Device autotests to plugin (aka new-style tests)


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/1a7809fc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/1a7809fc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/1a7809fc

Branch: refs/heads/master
Commit: 1a7809fc2e8cf0ff8ba48886ed07b432b3e7ab4c
Parents: 09b0440
Author: Michal Mocny <mm...@gmail.com>
Authored: Fri Jul 18 13:57:17 2014 -0400
Committer: Michal Mocny <mm...@gmail.com>
Committed: Fri Jul 18 13:57:17 2014 -0400

----------------------------------------------------------------------
 www/autotest/index.html            |  1 -
 www/autotest/pages/all.html        |  1 -
 www/autotest/pages/device.html     | 55 ----------------------------
 www/autotest/tests/device.tests.js | 64 ---------------------------------
 4 files changed, 121 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/1a7809fc/www/autotest/index.html
----------------------------------------------------------------------
diff --git a/www/autotest/index.html b/www/autotest/index.html
index 3a41d78..fe1dd91 100644
--- a/www/autotest/index.html
+++ b/www/autotest/index.html
@@ -43,7 +43,6 @@
     <a href="pages/compass.html" class="btn large" style="width:100%;">Run Compass Tests</a>
     <a href="pages/contacts.html" class="btn large" style="width:100%;">Run Contacts Tests</a>
     <a href="pages/datauri.html" class="btn large" style="width:100%;">Run Data URI Tests</a>
-    <a href="pages/device.html" class="btn large" style="width:100%;">Run Device Tests</a>
     <a href="pages/file.html" class="btn large" style="width:100%;">Run File Tests</a>
     <a href="pages/filetransfer.html" class="btn large" style="width:100%;">Run FileTransfer Tests</a>
     <a href="pages/geolocation.html" class="btn large" style="width:100%;">Run Geolocation Tests</a>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/1a7809fc/www/autotest/pages/all.html
----------------------------------------------------------------------
diff --git a/www/autotest/pages/all.html b/www/autotest/pages/all.html
index c006db1..9ee9180 100644
--- a/www/autotest/pages/all.html
+++ b/www/autotest/pages/all.html
@@ -52,7 +52,6 @@
   <script type="text/javascript" src="../tests/contacts.tests.js"></script>
   <script type="text/javascript" src="../tests/camera.tests.js"></script>
   <script type="text/javascript" src="../tests/datauri.tests.js"></script>
-  <script type="text/javascript" src="../tests/device.tests.js"></script>
   <script type="text/javascript" src="../tests/file.tests.js"></script>
   <script type="text/javascript" src="../tests/filetransfer.tests.js"></script>
   <script type="text/javascript" src="../tests/geolocation.tests.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/1a7809fc/www/autotest/pages/device.html
----------------------------------------------------------------------
diff --git a/www/autotest/pages/device.html b/www/autotest/pages/device.html
deleted file mode 100644
index b1bed1d..0000000
--- a/www/autotest/pages/device.html
+++ /dev/null
@@ -1,55 +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>Cordova: Device API Specs</title>
-
-  <meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
-  <!-- Load jasmine -->
-  <link href="../jasmine.css" rel="stylesheet"/>
-  <script type="text/javascript" src="../jasmine.js"></script>
-  <script type="text/javascript" src="../html/HtmlReporterHelpers.js"></script>
-  <script type="text/javascript" src="../html/HtmlReporter.js"></script>
-  <script type="text/javascript" src="../html/ReporterView.js"></script>
-  <script type="text/javascript" src="../html/SpecView.js"></script>
-  <script type="text/javascript" src="../html/SuiteView.js"></script>
-  <script type="text/javascript" src="../html/TrivialReporter.js"></script>
-
-  <!-- Source -->
-  <script type="text/javascript" src="../../cordova-incl.js"></script>
-
-  <!-- Load Test Runner -->
-  <script type="text/javascript" src="../test-runner.js"></script>
-
-  <!-- Tests -->
-  <script type="text/javascript" src="../tests/device.tests.js"></script>
-  <script type="text/javascript" charset="utf-8" src="./run-tests.js"></script>      
-</head>
-
-<body>
-  <a href="javascript:" class="backBtn">Back</a>
-</body>
-</html>
-

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/1a7809fc/www/autotest/tests/device.tests.js
----------------------------------------------------------------------
diff --git a/www/autotest/tests/device.tests.js b/www/autotest/tests/device.tests.js
deleted file mode 100644
index 0bcd0d9..0000000
--- a/www/autotest/tests/device.tests.js
+++ /dev/null
@@ -1,64 +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.
- *
-*/
-
-describe('Device Information (window.device)', function () {
-	it("should exist", function() {
-        expect(window.device).toBeDefined();
-	});
-
-	it("should contain a platform specification that is a string", function() {
-        expect(window.device.platform).toBeDefined();
-		expect((new String(window.device.platform)).length > 0).toBe(true);
-	});
-
-	it("should contain a version specification that is a string", function() {
-        expect(window.device.version).toBeDefined();
-		expect((new String(window.device.version)).length > 0).toBe(true);
-	});
-
-	it("should contain a UUID specification that is a string or a number", function() {
-        expect(window.device.uuid).toBeDefined();
-		if (typeof window.device.uuid == 'string' || typeof window.device.uuid == 'object') {
-		    expect((new String(window.device.uuid)).length > 0).toBe(true);
-		} else {
-			expect(window.device.uuid > 0).toBe(true);
-		}
-	});
-
-	it("should contain a cordova specification that is a string", function() {
-        expect(window.device.cordova).toBeDefined();
-		expect((new String(window.device.cordova)).length > 0).toBe(true);
-	});
-
-    it("should depend on the precense of cordova.version string", function() {
-            expect(window.cordova.version).toBeDefined();
-            expect((new String(window.cordova.version)).length > 0).toBe(true);
-    });
-
-    it("should contain device.cordova equal to cordova.version", function() {
-             expect(window.device.cordova).toBe(window.cordova.version);
-    });
-
-	it("should contain a model specification that is a string", function() {
-        expect(window.device.model).toBeDefined();
-		expect((new String(window.device.model)).length > 0).toBe(true);
-	});
-});