You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/03/28 03:15:47 UTC

[7/17] wp7 commit: update tests for 1.6

update tests for 1.6


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/4fce8c26
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/4fce8c26
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/4fce8c26

Branch: refs/heads/master
Commit: 4fce8c2657f35875517794bbca3b8df3ecc02f41
Parents: b96a05b
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Mar 26 12:12:19 2012 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon Mar 26 12:12:19 2012 -0700

----------------------------------------------------------------------
 .../CordovaSourceDictionary.xml                    |    3 +-
 .../MobileSpecUnitTests/MobileSpecUnitTests.csproj |    3 +-
 tests/MobileSpecUnitTests/MobileSpecUnitTests.sln  |    2 +-
 tests/MobileSpecUnitTests/www/autotest/index.html  |   37 +-
 .../www/autotest/tests/device.tests.js             |    1 +
 tests/MobileSpecUnitTests/www/cordova-1.5.0.js     | 3832 --------------
 tests/MobileSpecUnitTests/www/cordova-1.6.0.js     | 3861 +++++++++++++++
 tests/MobileSpecUnitTests/www/index.html           |   55 +-
 8 files changed, 3908 insertions(+), 3886 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/4fce8c26/tests/MobileSpecUnitTests/CordovaSourceDictionary.xml
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/CordovaSourceDictionary.xml b/tests/MobileSpecUnitTests/CordovaSourceDictionary.xml
index e8f13ef..ecd4aa8 100644
--- a/tests/MobileSpecUnitTests/CordovaSourceDictionary.xml
+++ b/tests/MobileSpecUnitTests/CordovaSourceDictionary.xml
@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- This file is auto-generated, do not edit! -jm -->
 <CordovaSourceDictionary>
-    <FilePath Value="www\cordova-1.5.0.js"/>
+    <FilePath Value="www\cordova-1.6.0.js"/>
+    <FilePath Value="www\cordova.wp7.js"/>
     <FilePath Value="www\index.html"/>
     <FilePath Value="www\master.css"/>
     <FilePath Value="www\autotest\index.html"/>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/4fce8c26/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj b/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
index f360fd8..da4b766 100644
--- a/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
+++ b/tests/MobileSpecUnitTests/MobileSpecUnitTests.csproj
@@ -112,7 +112,8 @@
     <Content Include="www\autotest\tests\orientation.tests.js" />
     <Content Include="www\autotest\tests\storage.tests.js" />
     <Content Include="www\autotest\tests\system.tests.js" />
-    <Content Include="www\cordova-1.5.0.js" />
+    <Content Include="www\cordova-1.6.0.js" />
+    <Content Include="www\cordova.wp7.js" />
     <Content Include="www\index.html">
       <SubType>Designer</SubType>
     </Content>

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/4fce8c26/tests/MobileSpecUnitTests/MobileSpecUnitTests.sln
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/MobileSpecUnitTests.sln b/tests/MobileSpecUnitTests/MobileSpecUnitTests.sln
index c2ba6fa..dbf1564 100644
--- a/tests/MobileSpecUnitTests/MobileSpecUnitTests.sln
+++ b/tests/MobileSpecUnitTests/MobileSpecUnitTests.sln
@@ -1,6 +1,6 @@
 
 Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010 Express for Windows Phone
+# Visual Studio 2010
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MobileSpecUnitTests", "MobileSpecUnitTests.csproj", "{86DC5E2F-4AEE-42E3-9471-A082B9BEBEAC}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WP7CordovaClassLib", "..\..\framework\WP7CordovaClassLib.csproj", "{FC6A1A70-892D-46AD-9E4A-9793F72AF780}"

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/4fce8c26/tests/MobileSpecUnitTests/www/autotest/index.html
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/www/autotest/index.html b/tests/MobileSpecUnitTests/www/autotest/index.html
index b724f59..542fe5b 100644
--- a/tests/MobileSpecUnitTests/www/autotest/index.html
+++ b/tests/MobileSpecUnitTests/www/autotest/index.html
@@ -4,25 +4,12 @@
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <meta name="viewport" content="width=device-width, height=device-height, user-scalable=yes, initial-scale=1.0;" />
 
-    <title>PhoneGap API Spec</title>
+    <title>Cordova API Spec</title>
 
     <!-- Load QUnit -->
     <link rel="stylesheet" type="text/css" href="qunit.css" />
           
 	<script type="text/javascript">
-			// provide our own console if it does not exist, huge dev aid!
-			if(typeof window.console == "undefined")
-			{
-			window.console = {log:function(str){window.external.Notify(str);}};
-			}
-			
-			// output any errors to console log, created above.
-			window.onerror=function(e)
-			{
-				console.log("window.onerror ::" + JSON.stringify(e));
-			};
-			
-			console.log("Installed console ! ");
 			
 			function onBodyLoad()
 			{
@@ -31,6 +18,7 @@
 			
 			function onBackButton()
 			{
+        
 				window.history.go(-1);
 			}
 			
@@ -40,7 +28,7 @@
 
     
     <!-- Source -->
-    <script type="text/javascript" src="../cordova-1.5.0.js"></script>
+    <script type="text/javascript" src="../cordova-1.6.0.js"></script>
     
     <!-- Load Test Runner -->
     <script type="text/javascript" src="test-runner.js"></script>
@@ -49,15 +37,21 @@
     
     <!-- Individual Tests -->
 
+    
+
+    <script type="text/javascript" src="tests/capture.tests.js"></script>  
+
+
+    <script type="text/javascript" src="tests/device.tests.js"></script>
     <script type="text/javascript" src="tests/accelerometer.tests.js"></script>
     <script type="text/javascript" src="tests/camera.tests.js"></script>
-    <script type="text/javascript" src="tests/capture.tests.js"></script>
+    
 
     <script type="text/javascript" src="tests/notification.tests.js"></script>
     <script type="text/javascript" src="tests/network.tests.js"></script>
     <script type="text/javascript" src="tests/geolocation.tests.js"></script>
 
-    <!--<script type="text/javascript" src="tests/compass.tests.js"></script>-->
+    <script type="text/javascript" src="tests/compass.tests.js"></script>
 
 
 
@@ -68,14 +62,9 @@
 
 
     <script type="text/javascript" src="tests/storage.tests.js"></script>
-    
-    
-    
-     
-    <script type="text/javascript" src="tests/device.tests.js"></script>
-    
 
-    <!--<script type="text/javascript" src="tests/orientation.tests.js"></script>  -->
+
+    <script type="text/javascript" src="tests/orientation.tests.js"></script>
     
     
     

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/4fce8c26/tests/MobileSpecUnitTests/www/autotest/tests/device.tests.js
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/www/autotest/tests/device.tests.js b/tests/MobileSpecUnitTests/www/autotest/tests/device.tests.js
index 8a8d1cf..b24175a 100644
--- a/tests/MobileSpecUnitTests/www/autotest/tests/device.tests.js
+++ b/tests/MobileSpecUnitTests/www/autotest/tests/device.tests.js
@@ -33,4 +33,5 @@ Tests.prototype.DeviceTests = function() {
 		ok(typeof window.device.cordova != 'undefined' && window.device.cordova != null, "window.device.cordova should not be null.")
 		ok((new String(window.device.cordova)).length > 0, "window.device.cordova should contain some kind of string value.")
 	});
+    
 };
\ No newline at end of file