Changeset 2123
- Timestamp:
- 01/02/07 18:58:02 (2 years ago)
- Files:
-
- trunk/openlayers/tests/test_Layer_WMS.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/test_Layer_WMS.html
r1908 r2123 182 182 map.zoomToMaxExtent(); 183 183 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"); 185 185 tLayer.setOpacity("0.6"); 186 186 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"); 188 188 var pixel = new OpenLayers.Pixel(5,6); 189 189 var tile = tLayer.addTile(new OpenLayers.Bounds(1,2,3,4), pixel); 190 190 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"); 192 192 193 193 }
