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

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5466 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2007-12-17 09:56:50 +00:00
parent a1522246a6
commit 8733534ad8

View File

@@ -21,7 +21,9 @@
var layer = new OpenLayers.Layer.Vector("layer");
var baseStyle = {externalGraphic: "bar${foo}.png"};
var baseStyle = OpenLayers.Util.extend(
OpenLayers.Feature.Vector.style["default"],
{externalGraphic: "bar${foo}.png"});
var style = new OpenLayers.Style(baseStyle);
@@ -59,7 +61,7 @@
// now the rule should not apply
createdStyle = style.createStyle(feature);
t.eq(createdStyle.fillColor, undefined, "Correct style for rule that does not apply to fid=\"2\".");
t.eq(createdStyle.fillColor, baseStyle.fillColor, "Correct style for rule that does not apply to fid=\"2\".");
}