merge two fromString tests into one
git-svn-id: http://svn.openlayers.org/trunk/openlayers@483 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -51,23 +51,21 @@
|
||||
}
|
||||
|
||||
function test_05_Bounds_fromString_int(t) {
|
||||
t.plan( 5 );
|
||||
t.plan( 10 );
|
||||
bounds = OpenLayers.Bounds.fromString("1,2,3,4");
|
||||
t.ok( bounds instanceof OpenLayers.Bounds, "new OpenLayers.Bounds returns Bounds object" );
|
||||
t.eq( bounds.left, 1, "bounds.left is set correctly" );
|
||||
t.eq( bounds.bottom, 2, "bounds.bottom is set correctly" );
|
||||
t.eq( bounds.right, 3, "bounds.right is set correctly" );
|
||||
t.eq( bounds.top, 4, "bounds.top is set correctly" );
|
||||
}
|
||||
|
||||
function test_06_Bounds_fromString_float(t) {
|
||||
t.plan( 5 );
|
||||
bounds = OpenLayers.Bounds.fromString("1.1,2.2,3.3,4.4");
|
||||
t.ok( bounds instanceof OpenLayers.Bounds, "new OpenLayers.Bounds returns Bounds object" );
|
||||
t.eq( bounds.left, 1.1, "bounds.left is set correctly" );
|
||||
t.eq( bounds.bottom, 2.2, "bounds.bottom is set correctly" );
|
||||
t.eq( bounds.right, 3.3, "bounds.right is set correctly" );
|
||||
t.eq( bounds.top, 4.4, "bounds.top is set correctly" );
|
||||
|
||||
}
|
||||
|
||||
function test_07_Bounds_copyOf(t) {
|
||||
|
||||
Reference in New Issue
Block a user