From 8733534ad810fbb1b59135126f19aa6c384045e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 17 Dec 2007 09:56:50 +0000 Subject: [PATCH] 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 --- tests/test_Style.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_Style.html b/tests/test_Style.html index ef9aefa8fb..1d5fd811ae 100644 --- a/tests/test_Style.html +++ b/tests/test_Style.html @@ -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\"."); }