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:
euzuro
2006-08-09 03:56:32 +00:00
parent 31af99c64d
commit 69876208f4
9 changed files with 49 additions and 49 deletions
+2 -3
View File
@@ -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");