From 2ecec3ddc3b3c9faa92dac9d77dbbc9428f7c5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Wed, 25 Jan 2012 10:43:07 +0100 Subject: [PATCH] fix the Handler.Keyboard tests --- tests/Handler/Keyboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Handler/Keyboard.html b/tests/Handler/Keyboard.html index d9d533748e..540ce7c712 100644 --- a/tests/Handler/Keyboard.html +++ b/tests/Handler/Keyboard.html @@ -56,7 +56,7 @@ var old = OpenLayers.Event.stopObserving; var types = ["keydown", "keyup"]; OpenLayers.Event.observe = function(obj, type, method) { - t.ok(obj == document, + t.ok(obj == map.div, "activate calls observing with correct object"); var validType = (OpenLayers.Util.indexOf(types, type) != -1); t.ok(validType, "activate calls observe for " + type); @@ -84,7 +84,7 @@ var old = OpenLayers.Event.stopObserving; var types = ["keydown", "keyup"]; OpenLayers.Event.stopObserving = function(obj, type, method) { - t.ok(obj == document, + t.ok(obj == map.div, "deactivate calls stopObserving with correct object"); var validType = (OpenLayers.Util.indexOf(types, type) != -1); t.ok(validType, "deactivate calls stopObserving for " + type);