Skip to content

Commit

Permalink
fix the Handler.Keyboard tests
Browse files Browse the repository at this point in the history
  • Loading branch information
elemoine committed Feb 15, 2012
1 parent cbebcd0 commit 2ecec3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Handler/Keyboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 2ecec3d

Please sign in to comment.