cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject spec commit: [CB-3307] Change cordova-VERSION.js to cordova.js.
Date Wed, 08 May 2013 14:04:44 GMT
Updated Branches:
  refs/heads/master d8cfbf888 -> 027ec1da8


[CB-3307] Change cordova-VERSION.js to cordova.js.


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/027ec1da
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/027ec1da
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/027ec1da

Branch: refs/heads/master
Commit: 027ec1da86511e85e25b3d4f38e2f3d7be31222b
Parents: d8cfbf8
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed May 8 10:03:30 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed May 8 10:03:30 2013 -0400

----------------------------------------------------------------------
 README.md                         |    5 +--
 accelerometer/index.html          |    2 +-
 audio/index.html                  |    2 +-
 autotest/html/SpecView.js         |    2 +-
 autotest/index.html               |    2 +-
 autotest/pages/accelerometer.html |    2 +-
 autotest/pages/all.html           |    2 +-
 autotest/pages/battery.html       |    2 +-
 autotest/pages/bridge.html        |    2 +-
 autotest/pages/camera.html        |    2 +-
 autotest/pages/capture.html       |    2 +-
 autotest/pages/compass.html       |    2 +-
 autotest/pages/contacts.html      |    2 +-
 autotest/pages/datauri.html       |    2 +-
 autotest/pages/device.html        |    2 +-
 autotest/pages/file.html          |    2 +-
 autotest/pages/filetransfer.html  |    2 +-
 autotest/pages/geolocation.html   |    2 +-
 autotest/pages/globalization.html |    2 +-
 autotest/pages/media.html         |    2 +-
 autotest/pages/network.html       |    2 +-
 autotest/pages/notification.html  |    2 +-
 autotest/pages/platform.html      |    2 +-
 autotest/pages/storage.html       |    2 +-
 battery/index.html                |    2 +-
 benchmarks/arraybuffer.html       |    2 +-
 benchmarks/autobench.html         |    2 +-
 benchmarks/index.html             |    2 +-
 benchmarks/uubench.js             |    2 +-
 camera/index.html                 |    2 +-
 compass/index.html                |    2 +-
 contacts/index.html               |    2 +-
 cordova-incl.js                   |   70 +++++++++++++++++++++++++++++++
 cordova.js                        |   71 --------------------------------
 events/index.html                 |    2 +-
 inappbrowser/index.html           |    2 +-
 inappbrowser/local.html           |    2 +-
 index.html                        |    4 +-
 lazyloadjs/index.html             |    6 +-
 location/index.html               |    2 +-
 misc/index.html                   |    2 +-
 misc/page2.html                   |    2 +-
 network/index.html                |    2 +-
 notification/index.html           |    2 +-
 splashscreen/index.html           |    2 +-
 sql/index.html                    |    2 +-
 storage/index.html                |    2 +-
 47 files changed, 118 insertions(+), 122 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 7f23152..bf3fb27 100644
--- a/README.md
+++ b/README.md
@@ -5,10 +5,7 @@ These specs are designed to run inside the mobile device that implements
it - _i
 These set of tests is designed to be used with Cordova. You should initialize a fresh Cordova
repository for a target platform and then toss these files into the www folder, replacing
the
 contents. 
 
-Make sure you include cordova-\*.js in the www folder.  You also need to edit cordova.js
to reference the version of cordova-\*.js file you are testing.
-For example, to test with cordova-0.9.6.1, edit the VERSION variable in the cordova.js file
as follows:
-
-    var VERSION='0.9.6.1';
+Make sure you include cordova.js in the www folder (see the code in cordova-incl.js for clarification).
 
 This is done so that you don't have to modify every HTML file when you want to test a new
version of Cordova.
 

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/accelerometer/index.html
----------------------------------------------------------------------
diff --git a/accelerometer/index.html b/accelerometer/index.html
index e0be68d..bbec57f 100644
--- a/accelerometer/index.html
+++ b/accelerometer/index.html
@@ -26,7 +26,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/audio/index.html
----------------------------------------------------------------------
diff --git a/audio/index.html b/audio/index.html
index 231e0c4..a0286d0 100644
--- a/audio/index.html
+++ b/audio/index.html
@@ -27,7 +27,7 @@
     <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1
-->
     <title>Cordova Audio Tests</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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/html/SpecView.js
----------------------------------------------------------------------
diff --git a/autotest/html/SpecView.js b/autotest/html/SpecView.js
index 8769bb8..e8a3c23 100644
--- a/autotest/html/SpecView.js
+++ b/autotest/html/SpecView.js
@@ -76,4 +76,4 @@ jasmine.HtmlReporter.SpecView.prototype.appendFailureDetail = function()
{
   }
 };
 
-jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SpecView);
\ No newline at end of file
+jasmine.HtmlReporterHelpers.addHelpers(jasmine.HtmlReporter.SpecView);

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/index.html
----------------------------------------------------------------------
diff --git a/autotest/index.html b/autotest/index.html
index e73fd58..6ebccbd 100644
--- a/autotest/index.html
+++ b/autotest/index.html
@@ -29,7 +29,7 @@
     <title>Cordova API Specs</title>
 
     <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no
title" charset="utf-8">
-    <script type="text/javascript" src="../cordova.js"></script>
+    <script type="text/javascript" src="../cordova-incl.js"></script>
   </head>
   <body id="stage" class="theme">
     <h1>Cordova API Specs</h1>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/accelerometer.html
----------------------------------------------------------------------
diff --git a/autotest/pages/accelerometer.html b/autotest/pages/accelerometer.html
index 4af4cf5..856dc70 100644
--- a/autotest/pages/accelerometer.html
+++ b/autotest/pages/accelerometer.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/all.html
----------------------------------------------------------------------
diff --git a/autotest/pages/all.html b/autotest/pages/all.html
index 4af7649..ad2eddd 100644
--- a/autotest/pages/all.html
+++ b/autotest/pages/all.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/battery.html
----------------------------------------------------------------------
diff --git a/autotest/pages/battery.html b/autotest/pages/battery.html
index 2bc111b..cb430de 100644
--- a/autotest/pages/battery.html
+++ b/autotest/pages/battery.html
@@ -35,7 +35,7 @@
   <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>
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/bridge.html
----------------------------------------------------------------------
diff --git a/autotest/pages/bridge.html b/autotest/pages/bridge.html
index a1d0a90..ca03e79 100644
--- a/autotest/pages/bridge.html
+++ b/autotest/pages/bridge.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/camera.html
----------------------------------------------------------------------
diff --git a/autotest/pages/camera.html b/autotest/pages/camera.html
index 9fdb872..c1dafee 100644
--- a/autotest/pages/camera.html
+++ b/autotest/pages/camera.html
@@ -39,7 +39,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/capture.html
----------------------------------------------------------------------
diff --git a/autotest/pages/capture.html b/autotest/pages/capture.html
index 78433b9..39faa2b 100644
--- a/autotest/pages/capture.html
+++ b/autotest/pages/capture.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/compass.html
----------------------------------------------------------------------
diff --git a/autotest/pages/compass.html b/autotest/pages/compass.html
index 00082c9..d97b680 100644
--- a/autotest/pages/compass.html
+++ b/autotest/pages/compass.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/contacts.html
----------------------------------------------------------------------
diff --git a/autotest/pages/contacts.html b/autotest/pages/contacts.html
index d736dd0..1518f19 100644
--- a/autotest/pages/contacts.html
+++ b/autotest/pages/contacts.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/datauri.html
----------------------------------------------------------------------
diff --git a/autotest/pages/datauri.html b/autotest/pages/datauri.html
index 3d5ffd2..b64b21a 100644
--- a/autotest/pages/datauri.html
+++ b/autotest/pages/datauri.html
@@ -36,7 +36,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/device.html
----------------------------------------------------------------------
diff --git a/autotest/pages/device.html b/autotest/pages/device.html
index 6315c15..7252e67 100644
--- a/autotest/pages/device.html
+++ b/autotest/pages/device.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/file.html
----------------------------------------------------------------------
diff --git a/autotest/pages/file.html b/autotest/pages/file.html
index 57b7e76..d143c74 100644
--- a/autotest/pages/file.html
+++ b/autotest/pages/file.html
@@ -37,7 +37,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/filetransfer.html
----------------------------------------------------------------------
diff --git a/autotest/pages/filetransfer.html b/autotest/pages/filetransfer.html
index 726e533..60cfcff 100644
--- a/autotest/pages/filetransfer.html
+++ b/autotest/pages/filetransfer.html
@@ -37,7 +37,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/geolocation.html
----------------------------------------------------------------------
diff --git a/autotest/pages/geolocation.html b/autotest/pages/geolocation.html
index 49fb10c..39f634e 100644
--- a/autotest/pages/geolocation.html
+++ b/autotest/pages/geolocation.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/globalization.html
----------------------------------------------------------------------
diff --git a/autotest/pages/globalization.html b/autotest/pages/globalization.html
index 79c5acd..6ca5aaf 100644
--- a/autotest/pages/globalization.html
+++ b/autotest/pages/globalization.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/media.html
----------------------------------------------------------------------
diff --git a/autotest/pages/media.html b/autotest/pages/media.html
index 518b8ef..7e2c9e5 100644
--- a/autotest/pages/media.html
+++ b/autotest/pages/media.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/network.html
----------------------------------------------------------------------
diff --git a/autotest/pages/network.html b/autotest/pages/network.html
index aa73bee..dcdec18 100644
--- a/autotest/pages/network.html
+++ b/autotest/pages/network.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/notification.html
----------------------------------------------------------------------
diff --git a/autotest/pages/notification.html b/autotest/pages/notification.html
index dcd9833..5ebfb86 100644
--- a/autotest/pages/notification.html
+++ b/autotest/pages/notification.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/platform.html
----------------------------------------------------------------------
diff --git a/autotest/pages/platform.html b/autotest/pages/platform.html
index 1a43521..e6ae3af 100644
--- a/autotest/pages/platform.html
+++ b/autotest/pages/platform.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/autotest/pages/storage.html
----------------------------------------------------------------------
diff --git a/autotest/pages/storage.html b/autotest/pages/storage.html
index e409b56..9ca226b 100644
--- a/autotest/pages/storage.html
+++ b/autotest/pages/storage.html
@@ -38,7 +38,7 @@
   <script type="text/javascript" src="../html/TrivialReporter.js"></script>
 
   <!-- Source -->
-  <script type="text/javascript" src="../../cordova.js"></script>
+  <script type="text/javascript" src="../../cordova-incl.js"></script>
 
   <!-- Load Test Runner -->
   <script type="text/javascript" src="../test-runner.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/battery/index.html
----------------------------------------------------------------------
diff --git a/battery/index.html b/battery/index.html
index 742ac24..70b0db7 100644
--- a/battery/index.html
+++ b/battery/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/benchmarks/arraybuffer.html
----------------------------------------------------------------------
diff --git a/benchmarks/arraybuffer.html b/benchmarks/arraybuffer.html
index 516f66e..4dd98b6 100644
--- a/benchmarks/arraybuffer.html
+++ b/benchmarks/arraybuffer.html
@@ -27,7 +27,7 @@
     <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.js"></script>
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
 
 <script>
     var exec = cordova.require('cordova/exec'),

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/benchmarks/autobench.html
----------------------------------------------------------------------
diff --git a/benchmarks/autobench.html b/benchmarks/autobench.html
index 04da228..9104f05 100644
--- a/benchmarks/autobench.html
+++ b/benchmarks/autobench.html
@@ -25,7 +25,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
     <script type="text/javascript" charset="utf-8" src="uubench.js"></script>
     <script type="text/javascript" charset="utf-8" src="licensecontents.js"></script>
 <script>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/benchmarks/index.html
----------------------------------------------------------------------
diff --git a/benchmarks/index.html b/benchmarks/index.html
index 1d24241..d7dd2bd 100644
--- a/benchmarks/index.html
+++ b/benchmarks/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
       
 <script>
     var exec = cordova.require('cordova/exec'),

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/benchmarks/uubench.js
----------------------------------------------------------------------
diff --git a/benchmarks/uubench.js b/benchmarks/uubench.js
index 7337165..17c0c4d 100644
--- a/benchmarks/uubench.js
+++ b/benchmarks/uubench.js
@@ -112,4 +112,4 @@ Suite.prototype.emit = function(type) {
 
 uubench.Suite = Suite;
 
-})(typeof exports !== 'undefined' ? exports : window.uubench = {});
\ No newline at end of file
+})(typeof exports !== 'undefined' ? exports : window.uubench = {});

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/camera/index.html
----------------------------------------------------------------------
diff --git a/camera/index.html b/camera/index.html
index b3ea47e..b9031b5 100644
--- a/camera/index.html
+++ b/camera/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
 
 
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/compass/index.html
----------------------------------------------------------------------
diff --git a/compass/index.html b/compass/index.html
index bc89f60..4d6af2c 100644
--- a/compass/index.html
+++ b/compass/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/contacts/index.html
----------------------------------------------------------------------
diff --git a/contacts/index.html b/contacts/index.html
index aaeaa95..b6a3a92 100644
--- a/contacts/index.html
+++ b/contacts/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/cordova-incl.js
----------------------------------------------------------------------
diff --git a/cordova-incl.js b/cordova-incl.js
new file mode 100644
index 0000000..dbcd1a6
--- /dev/null
+++ b/cordova-incl.js
@@ -0,0 +1,70 @@
+/*
+ *
+ * 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 PLAT;
+if (/Android/.exec(navigator.userAgent)) {
+    PLAT = 'android';
+} else if (/(iPad)|(iPhone)|(iPod)/.exec(navigator.userAgent)) {
+    PLAT = 'ios';
+} else if (/(BB10)|(PlayBook)|(BlackBerry)/.exec(navigator.userAgent)) {
+    PLAT = 'blackberry';
+}
+
+var scripts = document.getElementsByTagName('script');
+var currentPath = scripts[scripts.length - 1].src;
+var platformCordovaPath = currentPath.replace("cordova-incl.js", "cordova." + PLAT + ".js");
+var normalCordovaPath = currentPath.replace("cordova-incl.js", "cordova.js");
+var cordovaPath = normalCordovaPath;
+
+if (PLAT) {
+    // XHR to local file is an error on some platforms, windowsphone for one 
+    try {
+        var xhr = new XMLHttpRequest();
+        xhr.open("GET", platformCordovaPath, false);
+        xhr.onreadystatechange = function() {
+
+            if (this.readyState == this.DONE && this.responseText.length > 0)
{
+                if(parseInt(this.status) >= 400){
+                    cordovaPath = normalCordovaPath;
+                }else{
+                    cordovaPath = platformCordovaPath;
+                }
+            }
+        };
+        xhr.send(null);
+    }
+    catch(e){
+        cordovaPath = normalCordovaPath;
+    } // access denied!
+}
+
+if (!window._doNotWriteCordovaScript) {
+    document.write('<script type="text/javascript" charset="utf-8" src="' + cordovaPath
+ '"></script>');
+}
+
+function backHome() {
+	if (window.device && device.platform && device.platform.toLowerCase() ==
'android') {
+            navigator.app.backHistory();
+	}
+	else {
+	    window.history.go(-1);
+	}
+}

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/cordova.js
----------------------------------------------------------------------
diff --git a/cordova.js b/cordova.js
deleted file mode 100644
index e4e406e..0000000
--- a/cordova.js
+++ /dev/null
@@ -1,71 +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 VERSION='2.7.0';
-var PLAT;
-if (/Android/.exec(navigator.userAgent)) {
-    PLAT = 'android';
-} else if (/(iPad)|(iPhone)|(iPod)/.exec(navigator.userAgent)) {
-    PLAT = 'ios';
-} else if (/(BB10)|(PlayBook)|(BlackBerry)/.exec(navigator.userAgent)) {
-    PLAT = 'blackberry';
-}
-
-var scripts = document.getElementsByTagName('script');
-var currentPath = scripts[scripts.length - 1].src;
-var platformCordovaPath = currentPath.replace("cordova.js", "cordova." + PLAT + ".js");
-var versionCordovaPath = currentPath.replace("cordova.js", "cordova-" + VERSION + ".js");
-var cordovaPath = versionCordovaPath;
-
-if (PLAT) {
-    // XHR to local file is an error on some platforms, windowsphone for one 
-    try {
-        var xhr = new XMLHttpRequest();
-        xhr.open("GET", platformCordovaPath, false);
-        xhr.onreadystatechange = function() {
-
-            if (this.readyState == this.DONE && this.responseText.length > 0)
{
-                if(parseInt(this.status) >= 400){
-                    cordovaPath = versionCordovaPath;
-                }else{
-                    cordovaPath = platformCordovaPath;
-                }
-            }
-        };
-        xhr.send(null);
-    }
-    catch(e){
-        cordovaPath = versionCordovaPath;
-    } // access denied!
-}
-
-if (!window._doNotWriteCordovaScript) {
-    document.write('<script type="text/javascript" charset="utf-8" src="' + cordovaPath
+ '"></script>');
-}
-
-function backHome() {
-	if (window.device && device.platform && device.platform.toLowerCase() ==
'android') {
-            navigator.app.backHistory();
-	}
-	else {
-	    window.history.go(-1);
-	}
-}

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/events/index.html
----------------------------------------------------------------------
diff --git a/events/index.html b/events/index.html
index 3c312bc..d2ad8d4 100644
--- a/events/index.html
+++ b/events/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/inappbrowser/index.html
----------------------------------------------------------------------
diff --git a/inappbrowser/index.html b/inappbrowser/index.html
index ce5cdbe..1840c17 100644
--- a/inappbrowser/index.html
+++ b/inappbrowser/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
     <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/inappbrowser/local.html
----------------------------------------------------------------------
diff --git a/inappbrowser/local.html b/inappbrowser/local.html
index 328f99e..d5edbf9 100644
--- a/inappbrowser/local.html
+++ b/inappbrowser/local.html
@@ -27,7 +27,7 @@
     <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.js"></script>
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
   </head>
   <body id="stage" class="theme">
     <h1>InAppBrowser - Local URL</h1>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/index.html
----------------------------------------------------------------------
diff --git a/index.html b/index.html
index da8f319..2c5447b 100644
--- a/index.html
+++ b/index.html
@@ -27,7 +27,7 @@
     <meta http-equiv="Content-type" content="text/html; charset=utf-8">
     <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.js"></script>
+	  <script type="text/javascript" charset="utf-8" src="cordova-incl.js"></script>
 	  <script type="text/javascript" charset="utf-8" src="main.js"></script>
 
   </head>
@@ -52,7 +52,7 @@
     <a href="contacts/index.html" class="btn large">Contacts</a>
     <a href="events/index.html" class="btn large">Events</a>
     <a href="location/index.html" class="btn large">Location</a>
-    <a href="lazyloadjs/index.html" class="btn large">Lazy Loading of cordova.js</a>
+    <a href="lazyloadjs/index.html" class="btn large">Lazy Loading of cordova-incl.js</a>
     <a href="misc/index.html" class="btn large">Misc Content</a>
     <a href="network/index.html" class="btn large">Network</a>
     <a href="notification/index.html" class="btn large">Notification</a>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/lazyloadjs/index.html
----------------------------------------------------------------------
diff --git a/lazyloadjs/index.html b/lazyloadjs/index.html
index 52c9e40..7a0c06f 100644
--- a/lazyloadjs/index.html
+++ b/lazyloadjs/index.html
@@ -25,10 +25,10 @@
   <head>
     <meta name="viewport" content="width=device-width,height=device-height,user-scalable=no,initial-scale=1.0"
/>
     <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- ISO-8859-1
-->
-    <title>Lazy-Loading of cordova.js test</title>
+    <title>Lazy-Loading of cordova-incl.js test</title>
     <link rel="stylesheet" href="../master.css" type="text/css" media="screen" title="no
title" charset="utf-8"/>
     <script>_doNotWriteCordovaScript = true</script>
-    <script type="text/javascript" charset="utf-8" src="../cordova.js"></script>
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
 <script type="text/javascript" charset="utf-8">
     function init() {
         document.addEventListener("deviceready", function() {
@@ -44,7 +44,7 @@
 </script>
   </head>
   <body onload="init();" id="stage" class="theme">
-    <h1>Lazy-Loading of cordova.js</h1>
+    <h1>Lazy-Loading of cordova-incl.js</h1>
     <div id="info">
       onDeviceReady has not yet fired.
     </div>

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/location/index.html
----------------------------------------------------------------------
diff --git a/location/index.html b/location/index.html
index 61388f8..6ec2eed 100644
--- a/location/index.html
+++ b/location/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/misc/index.html
----------------------------------------------------------------------
diff --git a/misc/index.html b/misc/index.html
index d9f04bc..48f6424 100644
--- a/misc/index.html
+++ b/misc/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/misc/page2.html
----------------------------------------------------------------------
diff --git a/misc/page2.html b/misc/page2.html
index f635525..59dd6b9 100644
--- a/misc/page2.html
+++ b/misc/page2.html
@@ -27,7 +27,7 @@
     <meta http-equiv="Content-type" content="text/html; charset=utf-8">
     <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.js"></script>
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     <script type="text/javascript" charset="utf-8" src="../main.js"></script>
     <style>
       iframe, .iframe_container {

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/network/index.html
----------------------------------------------------------------------
diff --git a/network/index.html b/network/index.html
index c3d7d01..2902849 100644
--- a/network/index.html
+++ b/network/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/notification/index.html
----------------------------------------------------------------------
diff --git a/notification/index.html b/notification/index.html
index 1e99f0b..bacc086 100644
--- a/notification/index.html
+++ b/notification/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/splashscreen/index.html
----------------------------------------------------------------------
diff --git a/splashscreen/index.html b/splashscreen/index.html
index 00b2725..19132a4 100644
--- a/splashscreen/index.html
+++ b/splashscreen/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
 
 <script type="text/javascript" charset="utf-8">
   function showFor(duration) {

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/sql/index.html
----------------------------------------------------------------------
diff --git a/sql/index.html b/sql/index.html
index 48e47e6..eb97d73 100644
--- a/sql/index.html
+++ b/sql/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">

http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/027ec1da/storage/index.html
----------------------------------------------------------------------
diff --git a/storage/index.html b/storage/index.html
index 27e6cf4..20e2951 100644
--- a/storage/index.html
+++ b/storage/index.html
@@ -27,7 +27,7 @@
     <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.js"></script>
     
+    <script type="text/javascript" charset="utf-8" src="../cordova-incl.js"></script>
     
 
       
 <script type="text/javascript" charset="utf-8">


Mime
View raw message