[OpenLayers-Commits] r11751 - trunk/openlayers/tests/Control
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Tue Mar 29 10:12:40 EDT 2011
Author: erilem
Date: 2011-03-29 07:12:38 -0700 (Tue, 29 Mar 2011)
New Revision: 11751
Modified:
trunk/openlayers/tests/Control/DrawFeature.html
Log:
fix DrawFeature tests that changeset [11745] broke, thanks fredj for catching this, no functional change
Modified: trunk/openlayers/tests/Control/DrawFeature.html
===================================================================
--- trunk/openlayers/tests/Control/DrawFeature.html 2011-03-29 14:02:38 UTC (rev 11750)
+++ trunk/openlayers/tests/Control/DrawFeature.html 2011-03-29 14:12:38 UTC (rev 11751)
@@ -94,7 +94,8 @@
log = {};
control.activate();
t.eq(log.sketchstarted.type, "sketchstarted", "[activate] sketchstarted triggered");
- t.geom_eq(log.sketchstarted.vertex, new OpenLayers.Geometry.Point(-250, 175), "[activate] correct vertex");
+ t.ok(isNaN(log.sketchstarted.vertex.x) && isNaN(log.sketchstarted.vertex.y),
+ "[activate] correct vertex (NaN)");
log = {};
map.events.triggerEvent("mousemove", {xy: new OpenLayers.Pixel(0, 0)});
@@ -123,7 +124,8 @@
]),
"[dblclick] correct geometry");
t.eq(log.sketchstarted.type, "sketchstarted", "[dblclick] sketchstarted triggered");
- t.geom_eq(log.sketchstarted.vertex, new OpenLayers.Geometry.Point(-250, 175), "[dblclick] correct vertex");
+ t.ok(isNaN(log.sketchstarted.vertex.x) && isNaN(log.sketchstarted.vertex.y),
+ "[dblclick] correct vertex (NaN)");
map.destroy();
}
More information about the Commits
mailing list