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,11 +19,11 @@
|
||||
t.eq( pixel.toString(), "x=5,y=6", "pixel.toString() returns correctly");
|
||||
}
|
||||
|
||||
function test_03_Pixel_copyOf(t) {
|
||||
function test_03_Pixel_clone(t) {
|
||||
t.plan( 4 );
|
||||
oldPixel = new OpenLayers.Pixel(5,6);
|
||||
pixel = oldPixel.copyOf();
|
||||
t.ok( pixel instanceof OpenLayers.Pixel, "copyOf returns new OpenLayers.Pixel object" );
|
||||
pixel = oldPixel.clone();
|
||||
t.ok( pixel instanceof OpenLayers.Pixel, "clone returns new OpenLayers.Pixel object" );
|
||||
t.eq( pixel.x, 5, "pixel.x is set correctly");
|
||||
t.eq( pixel.y, 6, "pixel.y is set correctly");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user