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

Version Path
postrunner-0.0.10 misc/openlayers/tests/Symbolizer/Polygon.html
postrunner-0.0.9 misc/openlayers/tests/Symbolizer/Polygon.html
postrunner-0.0.8 misc/openlayers/tests/Symbolizer/Polygon.html
postrunner-0.0.7 misc/openlayers/tests/Symbolizer/Polygon.html
postrunner-0.0.6 misc/openlayers/tests/Symbolizer/Polygon.html
postrunner-0.0.5 misc/openlayers/tests/Symbolizer/Polygon.html
postrunner-0.0.4 misc/openlayers/tests/Symbolizer/Polygon.html
gb_mapfish_appserver-0.0.5 vendor/assets/javascripts/openlayers/tests/Symbolizer/Polygon.html
gb_mapfish_appserver-0.0.4 vendor/assets/javascripts/openlayers/tests/Symbolizer/Polygon.html
gb_mapfish_appserver-0.0.3 vendor/assets/javascripts/openlayers/tests/Symbolizer/Polygon.html
gb_mapfish_appserver-0.0.2 vendor/assets/javascripts/openlayers/tests/Symbolizer/Polygon.html
gb_mapfish_appserver-0.0.1 vendor/assets/javascripts/openlayers/tests/Symbolizer/Polygon.html