test for alpha hack, not just ie vs. mozilla

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1542 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-03 18:26:43 +00:00
parent 348b0b388d
commit 3e4109781b

View File

@@ -294,7 +294,7 @@
OpenLayers.Util.modifyAlphaImageDiv(imageDiv, id, xy, sz, img, position, border, sizing, opacity);
if (!isMozilla)
if (OpenLayers.Util.alphaHack())
t.ok( true, "skipping element test outside of Mozilla");
else
t.ok( imageDiv instanceof HTMLDivElement, "createDiv creates a valid HTMLDivElement" );
@@ -312,7 +312,7 @@
image = imageDiv.firstChild;
if (!isMozilla)
if (OpenLayers.Util.alphaHack())
t.ok( true, "skipping element test outside of Mozilla");
else
t.ok( image instanceof HTMLImageElement, "createImage creates a valid HTMLImageElement" );