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( pixel.y, 6, "pixel.y is set correctly");
}
function test_01a_Pixel_constructorFromString (t) {
t.plan( 4 );
pixel = new OpenLayers.Pixel("5","6");
t.ok( pixel instanceof OpenLayers.Pixel, "new OpenLayers.Pixel returns Pixel object" );
t.eq( pixel.CLASS_NAME, "OpenLayers.Pixel", "pixel.CLASS_NAME is set correctly");
t.eq( pixel.x, 5, "pixel.x is set correctly");
t.eq( pixel.y, 6, "pixel.y is set correctly");
}
function test_02_Pixel_toString(t) {
t.plan( 1 );
pixel = new OpenLayers.Pixel(5,6);