Changeset 4090
- Timestamp:
- 08/28/07 19:58:15 (1 year ago)
- Files:
-
- trunk/openlayers/tests/Handler/test_Point.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/Handler/test_Point.html
r4063 r4090 53 53 var handler = new OpenLayers.Handler.Point(control); 54 54 var activated = handler.activate(); 55 var evt = {xy: new OpenLayers.Pixel(150, 75), which: 1}; 55 var px = new OpenLayers.Pixel(150, 75); 56 var evt = {xy: px, which: 1}; 56 57 handler.mousedown(evt); 57 t.eq(handler.point.geometry.x, 0, "X is correct"); 58 t.eq(handler.point.geometry.y, 0, "Y is correct"); 59 t.ok(handler.point.geometry.getBounds().equals(new OpenLayers.Bounds(0,0,0,0)), "Correct bounds"); 58 var lonlat = map.getLonLatFromPixel(px); 59 t.eq(handler.point.geometry.x, lonlat.lon, "X is correct"); 60 t.eq(handler.point.geometry.y, lonlat.lat, "Y is correct"); 61 t.ok(handler.point.geometry.getBounds().equals(new OpenLayers.Bounds(lonlat.lon,lonlat.lat,lonlat.lon,lonlat.lat)), "Correct bounds"); 60 62 var evt = {xy: new OpenLayers.Pixel(175, 100), which: 1}; 61 63 handler.mousemove(evt);
