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:
Frédéric Junod
2008-08-04 09:11:19 +00:00
parent 91f3c5e652
commit 9e83c720d9

View File

@@ -14,13 +14,15 @@
}
function test_destroy(t) {
t.plan(1);
t.plan(2);
var protocol = new OpenLayers.Protocol({
options: {foo: 'bar'},
format: 'foo'
});
protocol.destroy();
t.eq(protocol.format, null, "destroy nullify protocol.format");
t.eq(protocol.options, null, "destroy nullify protocol.options");
}
</script>