git-svn-id: http://svn.openlayers.org/trunk/openlayers@7650 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
31 lines
714 B
HTML
31 lines
714 B
HTML
<html>
|
|
<head>
|
|
<script src="../lib/OpenLayers.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
function test_initialize(t) {
|
|
t.plan(2);
|
|
var options = {};
|
|
var strategy = new OpenLayers.Strategy(options);
|
|
|
|
t.ok(strategy instanceof OpenLayers.Strategy,
|
|
"new OpenLayers.Strategy returns object" );
|
|
t.eq(strategy.options, options, "constructor sets this.options");
|
|
}
|
|
|
|
function test_destroy(t) {
|
|
t.plan(1);
|
|
var strategy = new OpenLayers.Strategy({
|
|
layer: 'foo'
|
|
});
|
|
strategy.destroy();
|
|
|
|
t.eq(strategy.layer, null, "destroy nullify protocol.layer");
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|