Removing null default values from symbolizers. Later, we could consider static setDefaults methods on the constructors. r=ahocevar (closes #2840)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10770 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2010-09-17 16:32:07 +00:00
parent 38c3a4d4c5
commit bb71632848
8 changed files with 119 additions and 34 deletions
+12
View File
@@ -25,6 +25,18 @@
}
function test_defaults(t) {
t.plan(7);
var symbolizer = new OpenLayers.Symbolizer.Polygon();
t.ok(symbolizer.strokeColor === undefined, "no default strokeColor");
t.ok(symbolizer.strokeOpacity === undefined, "no default strokeOpacity");
t.ok(symbolizer.strokeWidth === undefined, "no default strokeWidth");
t.ok(symbolizer.strokeLinecap === undefined, "no default strokeLinecap");
t.ok(symbolizer.strokeDashstyle === undefined, "no default strokeDashstyle");
t.ok(symbolizer.fillColor === undefined, "no default fillColor");
t.ok(symbolizer.fillOpacity === undefined, "no default fillOpacity");
}
</script>
</head>