Sha256: 2ebd287bb0d375f788ae39d01c09e5a3c88d02f35b4cf8fb09ba5239ac175c5b
Contents?: true
Size: 1.56 KB
Versions: 12
Compression:
Stored size: 1.56 KB
Contents
<html> <head> <script src="../OLLoader.js"></script> <script type="text/javascript"> function test_constructor(t) { t.plan(3); var symbolizer = new OpenLayers.Symbolizer.Polygon({foo: "bar"}); t.ok(symbolizer instanceof OpenLayers.Symbolizer, "instance of OpenLayers.Symbolizer"); t.ok(symbolizer instanceof OpenLayers.Symbolizer.Polygon, "instance of OpenLayers.Symbolizer.Polygon"); t.eq(symbolizer.foo, "bar", "constructor applies config properties"); } function test_clone(t) { t.plan(2); var symbolizer = new OpenLayers.Symbolizer.Polygon({foo: "bar"}); var clone = symbolizer.clone(); t.ok(clone instanceof OpenLayers.Symbolizer.Polygon, "correct type"); t.eq(clone.foo, "bar", "clone copies properties"); } 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> <body></body> </html>
Version data entries
12 entries across 12 versions & 2 rubygems