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:
@@ -294,7 +294,7 @@
|
|||||||
|
|
||||||
OpenLayers.Util.modifyAlphaImageDiv(imageDiv, id, xy, sz, img, position, border, sizing, opacity);
|
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");
|
t.ok( true, "skipping element test outside of Mozilla");
|
||||||
else
|
else
|
||||||
t.ok( imageDiv instanceof HTMLDivElement, "createDiv creates a valid HTMLDivElement" );
|
t.ok( imageDiv instanceof HTMLDivElement, "createDiv creates a valid HTMLDivElement" );
|
||||||
@@ -312,7 +312,7 @@
|
|||||||
|
|
||||||
image = imageDiv.firstChild;
|
image = imageDiv.firstChild;
|
||||||
|
|
||||||
if (!isMozilla)
|
if (OpenLayers.Util.alphaHack())
|
||||||
t.ok( true, "skipping element test outside of Mozilla");
|
t.ok( true, "skipping element test outside of Mozilla");
|
||||||
else
|
else
|
||||||
t.ok( image instanceof HTMLImageElement, "createImage creates a valid HTMLImageElement" );
|
t.ok( image instanceof HTMLImageElement, "createImage creates a valid HTMLImageElement" );
|
||||||
|
|||||||
Reference in New Issue
Block a user