fix for #549 - clearing out of map div on map.destroy(). this fixes many opera tests

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-03-21 19:03:09 +00:00
parent 4bd131c882
commit 7425a06550
5 changed files with 21 additions and 6 deletions

View File

@@ -318,11 +318,12 @@
function test_99_Map_destroy (t) {
t.plan( 2 );
t.plan( 3 );
map = new OpenLayers.Map('map');
map.destroy();
t.eq( map.layers, null, "map.layers is null after destroy" );
t.eq( map.controls, null, "map.controls is null after destroy" );
t.eq( map.div.innerHTML, "", "map's div cleared out");
}
// -->
</script>