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
+4 -4
View File
@@ -5,12 +5,12 @@
var icon;
function test_01_Icon_constructor (t) {
t.plan( 5 );
icon = new OpenLayers.Icon("",new OpenLayers.Size(5,6));
t.plan( 4 );
var size = new OpenLayers.Size(5,6);
icon = new OpenLayers.Icon("", size);
t.ok( icon instanceof OpenLayers.Icon, "new OpenLayers.Icon returns Icon object" );
t.ok( icon.size instanceof OpenLayers.Size, "icon.size returns Size object" );
t.eq( icon.size.w, 5, "icon.size.w returns correct value" );
t.eq( icon.size.h, 6, "icon.size.w returns correct value" );
t.ok( icon.size.equals(size), "icon.size returns correct value" );
t.eq( icon.url, "", "icon.url returns str object" );
}
function test_02_Icon_clone (t) {