From 89019829555e5cdd5aaf3dff37eab0896508901a Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 25 Jan 2008 17:07:15 +0000 Subject: [PATCH] Fix broken handler test due to r5891 in IE. git-svn-id: http://svn.openlayers.org/trunk/openlayers@5892 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Handler.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_Handler.html b/tests/test_Handler.html index 7cd12250ef..e930816088 100644 --- a/tests/test_Handler.html +++ b/tests/test_Handler.html @@ -71,7 +71,10 @@ function test_Handler_deactivate(t) { t.plan(52); - var map = new OpenLayers.Map('map'); + var map = new OpenLayers.Map('map', { controls: []}); + // No controls so that we don't get more thingies than we expect + // when we actually clean up after ourselves: r5891 caused this + // because we actually destroy things now on the navigation control. var control = new OpenLayers.Control(); map.addControl(control); @@ -87,7 +90,8 @@ handler.activate(); map.events.unregister = function(type, obj, func) { - var r = func(); + try { + var r = func(); if(typeof r == "string") { // this is one of the mock handler methods t.ok(OpenLayers.Util.indexOf(events, type) > -1,