partially reverted r10732 (because we don't deactivate controls on destrly) and reverted r10810 (because it is not needed any more). r=elemoine (closes #2864)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10834 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2010-10-14 10:57:31 +00:00
parent 758a252bd8
commit ea3999d755
3 changed files with 4 additions and 13 deletions

View File

@@ -227,8 +227,8 @@
t.ok(!controlNoDeactive.active, "Tool control autoActivate:true is not active");
}
function test_Control_Panel_dectivate (t) {
t.plan(3);
function test_Control_Panel_deactivate (t) {
t.plan(2);
var map = new OpenLayers.Map('map');
var control = new OpenLayers.Control();
var panel = new OpenLayers.Control.Panel();
@@ -239,12 +239,7 @@
panel.deactivate();
t.ok(panel.div.innerHTML == "",
"Panel is not displayed after deactivate without any active control");
panel.activate();
var div = panel.div;
panel.destroy();
t.eq(panel.div, null,
"Panel is not displayed after destroy without any active control");
map.destroy();
}
</script>