Naturally layer.map is 0 if we never add it to a map in the first place...

git-svn-id: http://svn.openlayers.org/trunk/openlayers@197 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-19 22:11:07 +00:00
parent 9685524e26
commit 2684454343
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -24,6 +24,8 @@
function test_99_Layer_Marker_destroy (t) {
t.plan( 1 );
layer = new OpenLayers.Layer.Marker('Test Layer');
var map = new OpenLayers.Map('map');
map.addLayer(layer);
layer.destroy();
t.eq( layer.map, null, "layer.map is null after destroy" );
}