Ticket #1183: test_Style.patch
| File test_Style.patch, 0.9 kB (added by ahocevar, 8 months ago) |
|---|
-
tests/test_Style.html
old new 21 21 22 22 var layer = new OpenLayers.Layer.Vector("layer"); 23 23 24 var baseStyle = {externalGraphic: "bar${foo}.png"}; 24 var baseStyle = OpenLayers.Util.extend( 25 OpenLayers.Feature.Vector.style["default"], 26 {externalGraphic: "bar${foo}.png"}); 25 27 26 28 var style = new OpenLayers.Style(baseStyle); 27 29 … … 59 61 // now the rule should not apply 60 62 61 63 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\"."); 63 65 64 66 } 65 67
