cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [06/32] spec commit: CB-6966 Removed old vibration tests
Date Thu, 07 Aug 2014 00:53:24 GMT
CB-6966 Removed old vibration 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/d640abfb
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/d640abfb
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/d640abfb

Branch: refs/heads/master
Commit: d640abfb35f657ef72793048576e476dcdb8909c
Parents: 647bdb1
Author: Martin Gonzalez <martin.c.glez.glez@gmail.com>
Authored: Fri Aug 1 02:30:32 2014 -0500
Committer: Martin Gonzalez <martin.c.glez.glez@gmail.com>
Committed: Fri Aug 1 02:30:32 2014 -0500

----------------------------------------------------------------------
 www/autotest/index.html               |  1 -
 www/autotest/pages/vibration.html     | 55 ------------------------------
 www/autotest/tests/vibration.tests.js | 31 -----------------
 www/index.html                        |  2 --
 www/vibration/index.html              | 43 -----------------------
 www/vibration/index.js                | 31 -----------------
 6 files changed, 163 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d640abfb/www/autotest/index.html
----------------------------------------------------------------------
diff --git a/www/autotest/index.html b/www/autotest/index.html
index fe1dd91..ad20c42 100644
--- a/www/autotest/index.html
+++ b/www/autotest/index.html
@@ -56,7 +56,6 @@
     <a href="pages/splashscreen.html" class="btn large" style="width:100%;">Run Splashscreen
Tests</a>
     <a href="pages/whitelist.html" class="btn large" style="width:100%;">Run Whitelist
Tests</a>
     <a href="pages/localXHR.html" class="btn large" style="width:100%;">Run local XHR
Tests</a>
-    <a href="pages/vibration.html" class="btn large" style="width:100%;">Run Vibration
Tests</a>
     <h2> </h2><div class="backBtn">Back</div>
   </body>
 </html>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d640abfb/www/autotest/pages/vibration.html
----------------------------------------------------------------------
diff --git a/www/autotest/pages/vibration.html b/www/autotest/pages/vibration.html
deleted file mode 100644
index 04db2ec..0000000
--- a/www/autotest/pages/vibration.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: Vibration 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/vibration.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/d640abfb/www/autotest/tests/vibration.tests.js
----------------------------------------------------------------------
diff --git a/www/autotest/tests/vibration.tests.js b/www/autotest/tests/vibration.tests.js
deleted file mode 100644
index 18e75f2..0000000
--- a/www/autotest/tests/vibration.tests.js
+++ /dev/null
@@ -1,31 +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('Vibration (navigator.notification.vibrate)', function () {
-	it("navigator.notification should exist", function() {
-                expect(navigator.notification).toBeDefined();
-	});
-
-	it("should contain a vibrate function", function() {
-		expect(typeof navigator.notification.vibrate).toBeDefined();
-		expect(typeof navigator.notification.vibrate).toBe("function");
-	});
-});

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d640abfb/www/index.html
----------------------------------------------------------------------
diff --git a/www/index.html b/www/index.html
index 39bc875..40f5046 100644
--- a/www/index.html
+++ b/www/index.html
@@ -62,8 +62,6 @@ User-Agent: <span id="user-agent"> </span></div>
     <a href="benchmarks/index.html" class="btn large">Benchmarks</a>
     <a href="inappbrowser/index.html" class="btn large">In App Browser</a>
     <a href="keyboard/index.html" class="btn large">Keyboard</a>
-    <a href="vibration/index.html" class="btn large">Vibration</a>
-    <a href="file/index.html" class="btn large">File &amp; File Transfer</a>
     <a href="statusbar/index.html" class="btn large">Status Bar</a>
   </body>
 </html>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d640abfb/www/vibration/index.html
----------------------------------------------------------------------
diff --git a/www/vibration/index.html b/www/vibration/index.html
deleted file mode 100644
index a24110e..0000000
--- a/www/vibration/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 name="viewport" content="width=device-width,height=device-height,user-scalable=no,maximum-scale=1.0,initial-scale=1.0"
/>
-    <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1
-->
-    <title>Cordova Mobile Spec</title>
-    <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no
title" charset="utf-8">
-    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
-    <script type="text/javascript" charset="utf-8" src="./index.js"></script>
     
-  </head>
-  <body id="stage" class="theme">
-  
-    <h1>Vibrations</h1>
-    <div id="info">
-    </div>
-    
-    <h2>Action</h2>
-    <div class="btn large vibrate">Vibrate</div>
-    <h2> </h2><div class="backBtn">Back</div>
-  </body>
-</html>      

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/d640abfb/www/vibration/index.js
----------------------------------------------------------------------
diff --git a/www/vibration/index.js b/www/vibration/index.js
deleted file mode 100644
index 0d28902..0000000
--- a/www/vibration/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-var deviceReady = false;
-
-//-------------------------------------------------------------------------
-// Vibrations
-//-------------------------------------------------------------------------
-
-var vibrate = function(){
-  navigator.notification.vibrate(2500);
-};
-
-
-/**
- * Function called when page has finished loading.
- */
-function init() {
-    document.addEventListener("deviceready", function() {
-            deviceReady = true;
-            console.log("Device="+device.platform+" "+device.version);
-        }, false);
-    window.setTimeout(function() {
-        if (!deviceReady) {
-            alert("Error: Apache Cordova did not initialize.  Demo will not run correctly.");
-        }
-    },1000);
-}
-
-window.onload = function() {
-  addListenerToClass('vibrate', vibrate);
-  addListenerToClass('backBtn', backHome);
-  init();
-}


Mime
View raw message