[OpenLayers-Commits] r1784 - branches/openlayers/2.2/tests

commits at openlayers.org commits at openlayers.org
Wed Nov 8 14:03:30 EST 2006


Author: euzuro
Date: 2006-11-08 14:03:30 -0500 (Wed, 08 Nov 2006)
New Revision: 1784

Modified:
   branches/openlayers/2.2/tests/test_Layer_EventPane.html
   branches/openlayers/2.2/tests/test_Popup.html
   branches/openlayers/2.2/tests/test_Tile_Image.html
Log:
committing changes to testing code, as brought up from trunk r1781-r1783

Modified: branches/openlayers/2.2/tests/test_Layer_EventPane.html
===================================================================
--- branches/openlayers/2.2/tests/test_Layer_EventPane.html	2006-11-08 19:01:48 UTC (rev 1783)
+++ branches/openlayers/2.2/tests/test_Layer_EventPane.html	2006-11-08 19:03:30 UTC (rev 1784)
@@ -108,6 +108,6 @@
   </script>
 </head>
 <body>
-  <div id="map"></div>
+  <div id="map" style="height:500px;width:500px"></div>
 </body>
 </html>

Modified: branches/openlayers/2.2/tests/test_Popup.html
===================================================================
--- branches/openlayers/2.2/tests/test_Popup.html	2006-11-08 19:01:48 UTC (rev 1783)
+++ branches/openlayers/2.2/tests/test_Popup.html	2006-11-08 19:03:30 UTC (rev 1784)
@@ -52,7 +52,7 @@
 
     function test_03_Popup_draw(t) {
     
-        t.plan( 11 );
+        t.plan( 17 );
         
         var id = "chicken";
         var x = 50;
@@ -78,7 +78,17 @@
         t.eq(popup.div.style.top, y + "px", "top position of popup.div set correctly");
         t.eq(popup.div.style.width, w + "px", "width position of popup.div set correctly");
         t.eq(popup.div.style.height, h + "px", "heightposition of popup.div set correctly");
-        t.eq(popup.div.innerHTML, '<div class="olPopupContent" style="overflow: hidden; width: 200px; height: 200px; position: relative;" id="chicken_contentDiv">charlie</div>', "good default popup.contentHTML");
+
+        var contentDiv = popup.div.childNodes[0];
+        
+        t.eq(contentDiv.className, "olPopupContent", "correct content div className");
+        t.eq(contentDiv.id, "chicken_contentDiv", "correct content div id");
+        t.eq(contentDiv.style.width, "200px", "correct content div width");	 
+        t.eq(contentDiv.style.height, "200px", "correct content div height");
+        t.eq(contentDiv.style.position, "relative", "correct content div position");
+        t.eq(contentDiv.style.overflow, "hidden", "correct content div overflow");
+        t.eq(contentDiv.innerHTML, content, "correct content div content");				 
+
         t.eq(popup.div.style.backgroundColor, color, "good default popup.backgroundColor");
 
         if (navigator.appName.indexOf("Microsoft") == -1) {

Modified: branches/openlayers/2.2/tests/test_Tile_Image.html
===================================================================
--- branches/openlayers/2.2/tests/test_Tile_Image.html	2006-11-08 19:01:48 UTC (rev 1783)
+++ branches/openlayers/2.2/tests/test_Tile_Image.html	2006-11-08 19:03:30 UTC (rev 1784)
@@ -127,7 +127,7 @@
   </script>
 </head>
 <body>
-<div id="map"></div>
+<div id="map" style="height:500px;width:500px"></div>
 </body>
 </html>
 



More information about the Commits mailing list