OpenLayers OpenLayers

Changeset 2123

Show
Ignore:
Timestamp:
01/02/07 18:58:02 (2 years ago)
Author:
euzuro
Message:

fix opacity string/float issues in layer_wms tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/test_Layer_WMS.html

    r1908 r2123  
    182182        map.zoomToMaxExtent(); 
    183183        t.eq(tLayer.opacity, "0.5", "Opacity is set correctly"); 
    184         t.eq(tLayer.div.firstChild.style.opacity, "0.5", "Opacity on tile is correct"); 
     184        t.eq(parseFloat(tLayer.div.firstChild.style.opacity), 0.5, "Opacity on tile is correct"); 
    185185        tLayer.setOpacity("0.6"); 
    186186        t.eq(tLayer.opacity, "0.6", "setOpacity works properly"); 
    187         t.eq(tLayer.div.firstChild.style.opacity, "0.6", "Opacity on tile is changed correctly"); 
     187        t.eq(parseFloat(tLayer.div.firstChild.style.opacity), 0.6, "Opacity on tile is changed correctly"); 
    188188        var pixel = new OpenLayers.Pixel(5,6); 
    189189        var tile = tLayer.addTile(new OpenLayers.Bounds(1,2,3,4), pixel); 
    190190        tile.draw(); 
    191         t.eq(tile.imgDiv.style.opacity, "0.6", "Tile opacity is set correctly"); 
     191        t.eq(parseFloat(tile.imgDiv.style.opacity), 0.6, "Tile opacity is set correctly"); 
    192192 
    193193    }