OpenLayers OpenLayers

Changeset 2118

Show
Ignore:
Timestamp:
01/02/07 17:33:38 (2 years ago)
Author:
euzuro
Message:

updating icon test - was failing in Opera

Files:

Legend:

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

    r1541 r2118  
    2525    } 
    2626 
    27     function test_02_Marker_setOpacity(t) { 
     27    function test_03_Marker_setOpacity(t) { 
    2828        t.plan( 2 ); 
    2929         
    3030        icon = new OpenLayers.Icon("a",new OpenLayers.Size(5,6)); 
    31  
    3231        t.ok(!icon.imageDiv.style.opacity, "default icon has no opacity"); 
    3332         
    3433        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"); 
    3735    } 
    3836