From 8ffc1a72fc77600d0662bd32cdeba63fb0fd49b3 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 23 Aug 2007 17:39:52 +0000 Subject: [PATCH] #917 point.bounds needs to be non-null before the resize/rotate/move - thanks pgiraud for catching my sloppiness here git-svn-id: http://svn.openlayers.org/trunk/openlayers@3999 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Geometry/test_Point.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Geometry/test_Point.html b/tests/Geometry/test_Point.html index 3655dcee9e..3876fb4eb3 100644 --- a/tests/Geometry/test_Point.html +++ b/tests/Geometry/test_Point.html @@ -73,6 +73,7 @@ var dx = 10 * Math.random(); var dy = 10 * Math.random(); + point.bounds = "foo"; point.move(dx, dy); t.eq(point.x, x + dx, "move() correctly modifies x"); t.eq(point.y, y + dy, "move() correctly modifies y"); @@ -90,6 +91,7 @@ var origin = new OpenLayers.Geometry.Point(5, 10); // rotate a full revolution + point.bounds = "foo"; point.rotate(2 * Math.PI, origin); t.ok(((point.x - x) / x) < tolerance, "rotate by 2 * Math.PI returns to the same y"); @@ -113,7 +115,7 @@ var x = 100 * Math.random(); var y = 100 * Math.random(); var point = new OpenLayers.Geometry.Point(x, y); - var bounds = point.getBounds(); + point.bounds = "foo"; var i = 100 * Math.random(); var j = 100 * Math.random();