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
This commit is contained in:
Tim Schaub
2008-06-05 15:45:03 +00:00
parent 66a19c70ef
commit c10347fa87

View File

@@ -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");
}