update all base types to deal with any kind of input. a continuation of r1412 and a resolution for #245.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1413 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-09-07 18:18:06 +00:00
parent 00e354511e
commit 9b355b76dc
5 changed files with 43 additions and 11 deletions

View File

@@ -13,6 +13,15 @@
t.eq( size.h, 6, "size.h is set correctly");
}
function test_01a_Size_constructorFromString (t) {
t.plan( 4 );
size = new OpenLayers.Size("5","6");
t.ok( size instanceof OpenLayers.Size, "new OpenLayers.Size returns size object" );
t.eq( size.CLASS_NAME, "OpenLayers.Size", "size.CLASS_NAME is set correctly");
t.eq( size.w, 5, "size.w is set correctly");
t.eq( size.h, 6, "size.h is set correctly");
}
function test_02_Size_toString(t) {
t.plan( 1 );
size = new OpenLayers.Size(5,6);