From c10347fa87a5b796833af5a6902b63e6699e0433 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 5 Jun 2008 15:45:03 +0000 Subject: [PATCH] correcting the test count and not running the test for inline-block where alpha hack doesn't apply (closes #1520) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7308 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Util.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Util.html b/tests/Util.html index c20523ff08..1dabbf73bb 100644 --- a/tests/Util.html +++ b/tests/Util.html @@ -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"); + }