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