replace all usage of copyOf() with clone(). Now copyOf() is officially deprecated and unused. supported only if users out there have used it, but we can phase it out in the next official release.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@961 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-18 11:56:13 +00:00
parent fc41d9dac1
commit e91d0546ee
14 changed files with 35 additions and 35 deletions

View File

@@ -19,12 +19,12 @@
t.eq( size.toString(), "w=5,h=6", "size.toString() returns correctly");
}
function test_03_Size_copyOf(t) {
function test_03_Size_clone(t) {
t.plan( 4 );
oldSize = new OpenLayers.Size(5,6);
size = oldSize.copyOf();
t.ok( size instanceof OpenLayers.Size, "copyOf returns new OpenLayers.Size object" );
size = oldSize.clone();
t.ok( size instanceof OpenLayers.Size, "clone returns new OpenLayers.Size object" );
t.eq( size.w, 5, "Size.w is set correctly");
t.eq( size.h, 6, "Size.h is set correctly");