diff --git a/tests/test_Layer_WMS.html b/tests/test_Layer_WMS.html index d864b8e6c3..0cefe1558b 100644 --- a/tests/test_Layer_WMS.html +++ b/tests/test_Layer_WMS.html @@ -181,14 +181,14 @@ map.addLayer(tLayer); map.zoomToMaxExtent(); t.eq(tLayer.opacity, "0.5", "Opacity is set correctly"); - t.eq(tLayer.div.firstChild.style.opacity, "0.5", "Opacity on tile is correct"); + t.eq(parseFloat(tLayer.div.firstChild.style.opacity), 0.5, "Opacity on tile is correct"); tLayer.setOpacity("0.6"); t.eq(tLayer.opacity, "0.6", "setOpacity works properly"); - t.eq(tLayer.div.firstChild.style.opacity, "0.6", "Opacity on tile is changed correctly"); + t.eq(parseFloat(tLayer.div.firstChild.style.opacity), 0.6, "Opacity on tile is changed correctly"); var pixel = new OpenLayers.Pixel(5,6); var tile = tLayer.addTile(new OpenLayers.Bounds(1,2,3,4), pixel); tile.draw(); - t.eq(tile.imgDiv.style.opacity, "0.6", "Tile opacity is set correctly"); + t.eq(parseFloat(tile.imgDiv.style.opacity), 0.6, "Tile opacity is set correctly"); }