Changeset 2118
- Timestamp:
- 01/02/07 17:33:38 (2 years ago)
- Files:
-
- trunk/openlayers/tests/test_Icon.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/test_Icon.html
r1541 r2118 25 25 } 26 26 27 function test_0 2_Marker_setOpacity(t) {27 function test_03_Marker_setOpacity(t) { 28 28 t.plan( 2 ); 29 29 30 30 icon = new OpenLayers.Icon("a",new OpenLayers.Size(5,6)); 31 32 31 t.ok(!icon.imageDiv.style.opacity, "default icon has no opacity"); 33 32 34 33 icon.setOpacity(0.5); 35 36 t.eq(icon.imageDiv.style.opacity + "", "0.5", "icon.setOpacity() works"); 34 t.eq(parseFloat(icon.imageDiv.style.opacity), 0.5, "icon.setOpacity() works"); 37 35 } 38 36
