From 7c23659f2476d73563fa87ae5d4ecb6505238199 Mon Sep 17 00:00:00 2001 From: pgiraud Date: Mon, 21 Jul 2008 13:57:07 +0000 Subject: [PATCH] handlers test are not reflecting the reality, we now simulate a click, move then click \n that way geometry bounds are cleared, and the tests don't fail in IE6 anymore (See #1602), r=ahocevar,crschmidt (Closes #1623) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Handler/Path.html | 1 + tests/Handler/Polygon.html | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/Handler/Path.html b/tests/Handler/Path.html index d244ec40c3..408aca933d 100644 --- a/tests/Handler/Path.html +++ b/tests/Handler/Path.html @@ -57,6 +57,7 @@ handler.mousedown(evt); handler.mouseup(evt); var evt = {xy: new OpenLayers.Pixel(175, 100), which: 1}; + handler.mousemove(evt); handler.mousedown(evt); handler.mouseup(evt); t.ok(handler.line.geometry.getBounds().equals(new OpenLayers.Bounds(0,-35.15625,35.15625,0)), "Correct bounds"); diff --git a/tests/Handler/Polygon.html b/tests/Handler/Polygon.html index e71af3fa51..9a6293c223 100644 --- a/tests/Handler/Polygon.html +++ b/tests/Handler/Polygon.html @@ -58,6 +58,7 @@ handler.mousedown(evt); handler.mouseup(evt); var evt = {xy: new OpenLayers.Pixel(175, 100), which: 1}; + handler.mousemove(evt); handler.mousedown(evt); handler.mouseup(evt); t.ok(handler.line.geometry.getBounds().equals(new OpenLayers.Bounds(0,-35.15625,35.15625,0)), "Correct bounds");