From 9409058ca6aecdc119c9360e686acf74f3608bb9 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sat, 9 Jun 2007 11:22:28 +0000 Subject: [PATCH] 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 --- tests/Layer/test_GeoRSS.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Layer/test_GeoRSS.html b/tests/Layer/test_GeoRSS.html index 3b1747e1fe..9e3ef47c64 100644 --- a/tests/Layer/test_GeoRSS.html +++ b/tests/Layer/test_GeoRSS.html @@ -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" ); + }); } // -->