fix tests that do double-test to check lonlat or xy or wh instead of using the equals() functions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -20,13 +20,12 @@
|
||||
}
|
||||
|
||||
function test_03_Size_clone(t) {
|
||||
t.plan( 4 );
|
||||
t.plan( 3 );
|
||||
|
||||
oldSize = new OpenLayers.Size(5,6);
|
||||
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");
|
||||
t.ok( size.equals(oldSize), "new size is equal to old size correctly");
|
||||
|
||||
oldSize.w = 100;
|
||||
t.eq( size.w, 5, "changing oldSize.w doesn't change size.w");
|
||||
|
||||
Reference in New Issue
Block a user