[OpenLayers-Commits] r11654 - sandbox/tschaub/click/tests/Control
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Mar 7 09:34:46 EST 2011
Author: tschaub
Date: 2011-03-07 06:34:45 -0800 (Mon, 07 Mar 2011)
New Revision: 11654
Modified:
sandbox/tschaub/click/tests/Control/TouchNavigation.html
Log:
Using a real pixel to avoid test failure.
Modified: sandbox/tschaub/click/tests/Control/TouchNavigation.html
===================================================================
--- sandbox/tschaub/click/tests/Control/TouchNavigation.html 2011-03-07 14:33:48 UTC (rev 11653)
+++ sandbox/tschaub/click/tests/Control/TouchNavigation.html 2011-03-07 14:34:45 UTC (rev 11654)
@@ -114,7 +114,7 @@
var control = new OpenLayers.Control.TouchNavigation();
map.addControl(control);
var handler = control.handlers.click;
- handler.touchstart({xy: {x: 1, y: 1}, touches: ["foo", "bar"]});
+ handler.touchstart({xy: new OpenLayers.Pixel(1 ,1), touches: ["foo", "bar"]});
handler.touchend({});
t.delay_call(1, function() {
t.eq(map.getZoom(), 4, "Did we zoom out?");
More information about the Commits
mailing list