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:
@@ -21,7 +21,9 @@
|
|||||||
|
|
||||||
var layer = new OpenLayers.Layer.Vector("layer");
|
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);
|
var style = new OpenLayers.Style(baseStyle);
|
||||||
|
|
||||||
@@ -59,7 +61,7 @@
|
|||||||
// now the rule should not apply
|
// now the rule should not apply
|
||||||
|
|
||||||
createdStyle = style.createStyle(feature);
|
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\".");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user