Map should deactivate removed controls, removal of pythonic lack of ';' caught

by elemoine in his review. (Closes #1880)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8530 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-12-21 14:42:41 +00:00
parent 998d03770b
commit 34959835fb
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -59,6 +59,16 @@
control2.destroy();
}
function test_Control_removeControl(t) {
t.plan(1);
var map = new OpenLayers.Map('map');
var control = new OpenLayers.Control();
map.addControl(control);
control.deactivate = function() {
t.ok(true, "Deactivate is called.");
};
map.removeControl(control);
}
function test_Control_destroy(t) {
t.plan(3);