cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [05/14] updated tests, removed version from cordova path CB-3444
Date Wed, 22 May 2013 20:25:19 GMT
http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/00429385/windows8/template/www/index.html
----------------------------------------------------------------------
diff --git a/windows8/template/www/index.html b/windows8/template/www/index.html
index f06e8a7..daf12c4 100644
--- a/windows8/template/www/index.html
+++ b/windows8/template/www/index.html
@@ -33,7 +33,7 @@
                 <p class="event received">Device is Ready</p>
             </div>
         </div>
-        <script type="text/javascript" src="cordova-2.7.0.js"></script>
+        <script type="text/javascript" src="cordova.js"></script>
         <script type="text/javascript" src="js/index.js"></script>
         <script type="text/javascript">
             app.initialize();

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/00429385/windows8/test/CordovaTestApp.jsproj
----------------------------------------------------------------------
diff --git a/windows8/test/CordovaTestApp.jsproj b/windows8/test/CordovaTestApp.jsproj
index dd4213a..dd72c37 100644
--- a/windows8/test/CordovaTestApp.jsproj
+++ b/windows8/test/CordovaTestApp.jsproj
@@ -92,10 +92,14 @@
     <Content Include="autotest\tests\notification.tests.js" />
     <Content Include="autotest\tests\storage.tests.js" />
     <Content Include="battery\index.html" />
+    <Content Include="benchmarks\arraybuffer.html" />
+    <Content Include="benchmarks\autobench.html" />
+    <Content Include="benchmarks\index.html" />
+    <Content Include="benchmarks\uubench.js" />
     <Content Include="camera\index.html" />
     <Content Include="compass\index.html" />
     <Content Include="contacts\index.html" />
-    <Content Include="cordova-2.7.0.js" />
+    <Content Include="cordova-incl.js" />
     <Content Include="cordova.js" />
     <Content Include="events\index.html" />
     <Content Include="images\logo.png" />
@@ -117,6 +121,7 @@
     <Content Include="misc\page2.html" />
     <Content Include="network\index.html" />
     <Content Include="notification\index.html" />
+    <Content Include="splashscreen\index.html" />
     <Content Include="sql\index.html" />
     <Content Include="storage\index.html" />
     <None Include="MetroTestApp_TemporaryKey.pfx" />

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/00429385/windows8/test/README.md
----------------------------------------------------------------------
diff --git a/windows8/test/README.md b/windows8/test/README.md
index 7f23152..bf3fb27 100644
--- a/windows8/test/README.md
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/VERSION
----------------------------------------------------------------------
diff --git a/windows8/test/VERSION b/windows8/test/VERSION
index 59b7056..38f8e88 100644
--- a/windows8/test/VERSION
+++ b/windows8/test/VERSION
@@ -1 +1 @@
-2.7.0rc1
+dev

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/00429385/windows8/test/accelerometer/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/accelerometer/index.html b/windows8/test/accelerometer/index.html
index e0be68d..bbec57f 100644
--- a/windows8/test/accelerometer/index.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/audio/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/audio/index.html b/windows8/test/audio/index.html
index 231e0c4..a0286d0 100644
--- a/windows8/test/audio/index.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/html/SpecView.js
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/html/SpecView.js b/windows8/test/autotest/html/SpecView.js
index 8769bb8..e8a3c23 100644
--- a/windows8/test/autotest/html/SpecView.js
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/index.html b/windows8/test/autotest/index.html
index e73fd58..6ebccbd 100644
--- a/windows8/test/autotest/index.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/accelerometer.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/accelerometer.html b/windows8/test/autotest/pages/accelerometer.html
index 4af4cf5..856dc70 100644
--- a/windows8/test/autotest/pages/accelerometer.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/all.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/all.html b/windows8/test/autotest/pages/all.html
index 4af7649..ad2eddd 100644
--- a/windows8/test/autotest/pages/all.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/battery.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/battery.html b/windows8/test/autotest/pages/battery.html
index 2bc111b..cb430de 100644
--- a/windows8/test/autotest/pages/battery.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/bridge.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/bridge.html b/windows8/test/autotest/pages/bridge.html
index a1d0a90..ca03e79 100644
--- a/windows8/test/autotest/pages/bridge.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/camera.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/camera.html b/windows8/test/autotest/pages/camera.html
index 9fdb872..c1dafee 100644
--- a/windows8/test/autotest/pages/camera.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/capture.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/capture.html b/windows8/test/autotest/pages/capture.html
index 78433b9..39faa2b 100644
--- a/windows8/test/autotest/pages/capture.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/compass.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/compass.html b/windows8/test/autotest/pages/compass.html
index 00082c9..d97b680 100644
--- a/windows8/test/autotest/pages/compass.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/contacts.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/contacts.html b/windows8/test/autotest/pages/contacts.html
index d736dd0..1518f19 100644
--- a/windows8/test/autotest/pages/contacts.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/datauri.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/datauri.html b/windows8/test/autotest/pages/datauri.html
index 3d5ffd2..b64b21a 100644
--- a/windows8/test/autotest/pages/datauri.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/device.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/device.html b/windows8/test/autotest/pages/device.html
index 6315c15..7252e67 100644
--- a/windows8/test/autotest/pages/device.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/file.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/file.html b/windows8/test/autotest/pages/file.html
index 57b7e76..d143c74 100644
--- a/windows8/test/autotest/pages/file.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/filetransfer.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/filetransfer.html b/windows8/test/autotest/pages/filetransfer.html
index 726e533..60cfcff 100644
--- a/windows8/test/autotest/pages/filetransfer.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/geolocation.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/geolocation.html b/windows8/test/autotest/pages/geolocation.html
index 49fb10c..39f634e 100644
--- a/windows8/test/autotest/pages/geolocation.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/globalization.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/globalization.html b/windows8/test/autotest/pages/globalization.html
index 79c5acd..6ca5aaf 100644
--- a/windows8/test/autotest/pages/globalization.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/media.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/media.html b/windows8/test/autotest/pages/media.html
index 518b8ef..7e2c9e5 100644
--- a/windows8/test/autotest/pages/media.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/network.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/network.html b/windows8/test/autotest/pages/network.html
index aa73bee..dcdec18 100644
--- a/windows8/test/autotest/pages/network.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/notification.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/notification.html b/windows8/test/autotest/pages/notification.html
index dcd9833..5ebfb86 100644
--- a/windows8/test/autotest/pages/notification.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/platform.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/platform.html b/windows8/test/autotest/pages/platform.html
index 1a43521..e6ae3af 100644
--- a/windows8/test/autotest/pages/platform.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/pages/storage.html
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/pages/storage.html b/windows8/test/autotest/pages/storage.html
index e409b56..9ca226b 100644
--- a/windows8/test/autotest/pages/storage.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/autotest/tests/compass.tests.js
----------------------------------------------------------------------
diff --git a/windows8/test/autotest/tests/compass.tests.js b/windows8/test/autotest/tests/compass.tests.js
index edaced2..3b32bcd 100644
--- a/windows8/test/autotest/tests/compass.tests.js
+++ b/windows8/test/autotest/tests/compass.tests.js
@@ -79,9 +79,10 @@ describe('Compass (navigator.compass)', function () {
 
         it("compass.spec.8 should be able to create a new CompassHeading instance with no
parameters", function() {
             var h = new CompassHeading();
-            expect(h.magneticHeading).toBeDefined();
-            expect(h.trueHeading).toBeDefined();
-            expect(h.headingAccuracy).toBeDefined();
+            expect(h).toBeDefined();
+            expect(h.magneticHeading).toBeUndefined();
+            expect(h.trueHeading).toBeUndefined();
+            expect(h.headingAccuracy).toBeUndefined();
             expect(typeof h.timestamp == 'number').toBe(true);
         });
 

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/00429385/windows8/test/battery/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/battery/index.html b/windows8/test/battery/index.html
index 742ac24..70b0db7 100644
--- a/windows8/test/battery/index.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/benchmarks/arraybuffer.html
----------------------------------------------------------------------
diff --git a/windows8/test/benchmarks/arraybuffer.html b/windows8/test/benchmarks/arraybuffer.html
index 516f66e..4dd98b6 100644
--- a/windows8/test/benchmarks/arraybuffer.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/benchmarks/autobench.html
----------------------------------------------------------------------
diff --git a/windows8/test/benchmarks/autobench.html b/windows8/test/benchmarks/autobench.html
index 04da228..9104f05 100644
--- a/windows8/test/benchmarks/autobench.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/benchmarks/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/benchmarks/index.html b/windows8/test/benchmarks/index.html
index 1d24241..d7dd2bd 100644
--- a/windows8/test/benchmarks/index.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/benchmarks/uubench.js
----------------------------------------------------------------------
diff --git a/windows8/test/benchmarks/uubench.js b/windows8/test/benchmarks/uubench.js
index 7337165..17c0c4d 100644
--- a/windows8/test/benchmarks/uubench.js
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/camera/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/camera/index.html b/windows8/test/camera/index.html
index 8ea6ee8..b9031b5 100644
--- a/windows8/test/camera/index.html
+++ b/windows8/test/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">
@@ -71,8 +71,16 @@
     }
 
     function setPicture(url, callback) {
+		try {
+			window.atob(url);
+			// if we got here it is a base64 string (DATA_URL)
+			url = "data:image/jpeg;base64," + url;
+		} catch (e) {
+			// not DATA_URL
+		    log('URL: ' + url.slice(0, 100));
+		}    
+    
         pictureUrl = url;
-        log('URL: ' + url.slice(0, 100));
         var img = document.getElementById('camera_image');
         var startTime = new Date();
         img.src = url;
@@ -94,6 +102,8 @@
                 fileEntry = e;
                 logCallback('resolveLocalFileSystemURI()', true)(e);
             }, logCallback('resolveLocalFileSystemURI()', false));
+        } else if (pictureUrl.indexOf('data:image/jpeg;base64' == 0)) {
+        	// do nothing
         } else {
             var path = pictureUrl.replace(/^file:\/\/(localhost)?/, '').replace(/%20/g, '
');
             fileEntry = new FileEntry('image_name.png', path);

http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/00429385/windows8/test/compass/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/compass/index.html b/windows8/test/compass/index.html
index bc89f60..4d6af2c 100644
--- a/windows8/test/compass/index.html
+++ b/windows8/test/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-windows/blob/00429385/windows8/test/contacts/index.html
----------------------------------------------------------------------
diff --git a/windows8/test/contacts/index.html b/windows8/test/contacts/index.html
index aaeaa95..b6a3a92 100644
--- a/windows8/test/contacts/index.html
+++ b/windows8/test/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">


Mime
View raw message