[OpenLayers-Commits] r7308 - trunk/openlayers/tests

commits at openlayers.org commits at openlayers.org
Thu Jun 5 11:45:03 EDT 2008


Author: tschaub
Date: 2008-06-05 11:45:03 -0400 (Thu, 05 Jun 2008)
New Revision: 7308

Modified:
   trunk/openlayers/tests/Util.html
Log:
correcting the test count and not running the test for inline-block where alpha hack doesn't apply (closes #1520)

Modified: trunk/openlayers/tests/Util.html
===================================================================
--- trunk/openlayers/tests/Util.html	2008-06-04 04:36:57 UTC (rev 7307)
+++ trunk/openlayers/tests/Util.html	2008-06-05 15:45:03 UTC (rev 7308)
@@ -400,7 +400,7 @@
     }
 
     function test_Util_modifyAlphaImageDiv(t) {
-        t.plan( 20 );
+        t.plan( 21 );
 
         var imageDiv = OpenLayers.Util.createAlphaImageDiv();
 
@@ -484,7 +484,11 @@
         var display = "block";
         imageDiv.style.display = display;
         OpenLayers.Util.modifyAlphaImageDiv(imageDiv, id, xy, sz, img, position, border, sizing, opacity);
-        t.eq(imageDiv.style.display, "inline-block", "imageDiv.style.display set correctly, if not 'none'");
+        if(OpenLayers.Util.alphaHack()) {
+            t.eq(imageDiv.style.display, "inline-block", "imageDiv.style.display set correctly, if not 'none'");
+        } else {
+            t.ok(true, "inline-block is not part of CSS2 and is not supported by Firefox 2");
+        }
 
         
 



More information about the Commits mailing list