#856 - fix up clone method for vector features - give the geometry base class a clone (though it will likely never be used)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3788 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-07-23 19:54:58 +00:00
parent fd4d2918f1
commit 892a4042a1
4 changed files with 51 additions and 10 deletions

View File

@@ -14,6 +14,15 @@
}
function test_Geometry_clone(t) {
t.plan(2);
var geometry = new OpenLayers.Geometry();
var clone = geometry.clone();
t.eq(clone.CLASS_NAME, "OpenLayers.Geometry", "correct CLASS_NAME")
t.ok(clone.id.startsWith("OpenLayers.Geometry_"), "id correctly set");
}
function test_02_Geometry_setBounds(t) {
t.plan( 2 );