#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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user