OpenLayers OpenLayers

Changeset 5466

Show
Ignore:
Timestamp:
12/17/07 04:56:50 (8 months ago)
Author:
elemoine
Message:

Fix test_Style.html on IE. Thanks Andreas for fixing this in no time.

Files:

Legend:

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

    r5429 r5466  
    2222        var layer = new OpenLayers.Layer.Vector("layer"); 
    2323          
    24         var baseStyle = {externalGraphic: "bar${foo}.png"}; 
     24        var baseStyle = OpenLayers.Util.extend( 
     25                OpenLayers.Feature.Vector.style["default"], 
     26                {externalGraphic: "bar${foo}.png"}); 
    2527         
    2628        var style = new OpenLayers.Style(baseStyle); 
     
    6062         
    6163        createdStyle = style.createStyle(feature); 
    62         t.eq(createdStyle.fillColor, undefined, "Correct style for rule that does not apply to fid=\"2\"."); 
     64        t.eq(createdStyle.fillColor, baseStyle.fillColor, "Correct style for rule that does not apply to fid=\"2\"."); 
    6365         
    6466    }