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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user