Our recent change to not catch and hide exceptions silently is causing this

test to break, because the destroy gets called before the layer loads, so the
features are attempted to be pushed into somethig that has been set to null.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3306 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-06-09 11:22:28 +00:00
parent 905bd6d441
commit 9409058ca6

View File

@@ -28,7 +28,6 @@
t.eq( layer.name, "Crschmidt's Places At Platial", "Layer name is correct." );
} );
}
function test_01_Layer_GeoRSS_AtomParsing (t) {
t.plan( 6 );
layer = new OpenLayers.Layer.GeoRSS('Test Layer', atom_xml );
@@ -107,8 +106,10 @@
layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt);
var map = new OpenLayers.Map('map');
map.addLayer(layer);
t.delay_call( 1, function() {
layer.destroy();
t.eq( layer.map, null, "layer.map is null after destroy" );
});
}
// -->
</script>