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/02/23 23:29:31 UTC

[24/50] [abbrv] update 1.4.1 references to 1.5.0

http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/a9056cc7/tests/MobileSpecUnitTests/www/index.html
----------------------------------------------------------------------
diff --git a/tests/MobileSpecUnitTests/www/index.html b/tests/MobileSpecUnitTests/www/index.html
index 2ef2940..803be42 100644
--- a/tests/MobileSpecUnitTests/www/index.html
+++ b/tests/MobileSpecUnitTests/www/index.html
@@ -4,81 +4,66 @@
     <meta name="viewport" content="width=320; user-scalable=no" />
     <meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
 
-    <title>PhoneGap</title>
+    <title>Cordova Tests</title>
 	  <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
       
-	<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 ! ");
-    </script>
-      
-      <script type="text/javascript" charset="utf-8" src="cordova-1.4.1.js"></script> 
+      <script type="text/javascript" charset="utf-8" src="cordova-1.5.0.js"></script> 
        
       <script type="text/javascript">
 
-			
-			function init()
-			{
-				document.addEventListener("deviceready",onDeviceReady,false);
-				document.addEventListener("backbutton",onBackButton,false);
-
-			}
-		
-			
-			function onBackButton()
-			{
-				console.log("onBackButton");	
-			}
-			
-			function onDeviceReady(e)
-			{
-				updateDeviceInfo();
-				console.log("deviceready event fired!");
-			}
-			
-			function updateDeviceInfo() 
-			{
-				document.getElementById("platform").innerHTML = device.platform;
-				document.getElementById("version").innerHTML = device.version;
-				document.getElementById("uuid").innerHTML = device.uuid;
-				document.getElementById("name").innerHTML = device.name;
-				document.getElementById("width").innerHTML = screen.width;
-				document.getElementById("height").innerHTML = screen.height;
-				document.getElementById("colorDepth").innerHTML = screen.colorDepth;
-			};
-			
-			PhoneGap.addConstructor(function()
-			{
-				console.log("PhoneGap.addConstructor is working");
-			});
-			
-			
-			
-			
-	  </script>
+
+          function init()
+          {
+          document.addEventListener("deviceready",onDeviceReady,false);
+          document.addEventListener("backbutton",onBackButton,false);
+
+          }
+
+
+          function onBackButton()
+          {
+          console.log("onBackButton");
+          }
+
+          function onDeviceReady(e)
+          {
+          updateDeviceInfo();
+          console.log("deviceready event fired!");
+          }
+
+          function updateDeviceInfo()
+          {
+          document.getElementById("platform").innerHTML = device.platform;
+          document.getElementById("version").innerHTML = device.version;
+          document.getElementById("uuid").innerHTML = device.uuid;
+          document.getElementById("name").innerHTML = device.name;
+          document.getElementById("width").innerHTML = screen.width;
+          document.getElementById("height").innerHTML = screen.height;
+          document.getElementById("colorDepth").innerHTML = screen.colorDepth;
+          document.getElementById("cordovaVersion").innerHTML = device.cordova;
+
+          };
+
+
+
+
+
+      </script>
 
 
   </head>
   <body onLoad="init();" id="stage" class="theme">
     <h1>PhoneGap Tests</h1>
     <div id="info">
-        <h4>Platform: <span id="platform"> &nbsp;</span></h4>
-        <h4>Version: <span id="version">&nbsp;</span></h4>
-        <h4>UUID: <span id="uuid"> &nbsp;</span></h4>
-        <h4>Name: <span id="name">&nbsp;</span></h4>
-        <h4>Width: <span id="width"> &nbsp;</span>,   Height: <span id="height">&nbsp;
-                   </span>, Color Depth: <span id="colorDepth"></span></h4>
+        <h4>Platform: <span id="platform"></span></h4>
+        <h4>Version: <span id="version"></span></h4>
+        <h4>UUID: <span id="uuid"></span></h4>
+        <h4>Name: <span id="name"></span></h4>
+        <h4>Width: <span id="width"></span>
+        ,   Height: <span id="height"></span>
+        , Color Depth: <span id="colorDepth"></span>
+        </h4>
+        <h4>CordovaVersion:<span id="cordovaVersion"></span></h4>
      </div>