(Closes #920) - adding clearBounds() test. Thanks to pierre for the good patch for this missing test.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@4016 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-08-24 13:38:24 +00:00
parent fb7466b1c2
commit 0a6eca4b33

View File

@@ -184,7 +184,21 @@
var g = new OpenLayers.Geometry();
t.eq(g.getArea(), 0, "getArea is 0");
}
}
function test_08_Geometry_clearBounds(t) {
t.plan(2);
var g = new OpenLayers.Geometry();
g.parent = new OpenLayers.Geometry();
g.bounds = "foo";
g.parent.bounds = "bar";
g.clearBounds();
t.ok(g.bounds == null, "bounds is correctly cleared");
t.ok(g.parent.bounds == null, "parent geometry bounds is correctly cleared");
}
function test_99_Geometry_destroy(t) {
t.plan( 2 );