Test if OpenLayers.Protocol::destroy() nullify options property
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7687 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+3
-1
@@ -14,13 +14,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function test_destroy(t) {
|
function test_destroy(t) {
|
||||||
t.plan(1);
|
t.plan(2);
|
||||||
var protocol = new OpenLayers.Protocol({
|
var protocol = new OpenLayers.Protocol({
|
||||||
|
options: {foo: 'bar'},
|
||||||
format: 'foo'
|
format: 'foo'
|
||||||
});
|
});
|
||||||
protocol.destroy();
|
protocol.destroy();
|
||||||
|
|
||||||
t.eq(protocol.format, null, "destroy nullify protocol.format");
|
t.eq(protocol.format, null, "destroy nullify protocol.format");
|
||||||
|
t.eq(protocol.options, null, "destroy nullify protocol.options");
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user