tests/Bounds: Fixed indentation and whitespace
This commit is contained in:
@@ -444,19 +444,17 @@
|
|||||||
function test_Bounds_extend(t) {
|
function test_Bounds_extend(t) {
|
||||||
t.plan( 9 );
|
t.plan( 9 );
|
||||||
|
|
||||||
|
// null bounds to start
|
||||||
var originalBounds = new OpenLayers.Bounds();
|
var originalBounds = new OpenLayers.Bounds();
|
||||||
var bounds = originalBounds.clone();
|
var bounds = originalBounds.clone();
|
||||||
//null bounds to start
|
|
||||||
bounds.extend(new OpenLayers.LonLat(4,5));
|
bounds.extend(new OpenLayers.LonLat(4,5));
|
||||||
t.ok(bounds.equals(new OpenLayers.Bounds(4,5,4,5)), "uninitialized bounds can be safely extended");
|
t.ok(bounds.equals(new OpenLayers.Bounds(4,5,4,5)), "uninitialized bounds can be safely extended");
|
||||||
|
|
||||||
|
// extend with null obj
|
||||||
|
|
||||||
originalBounds = new OpenLayers.Bounds(10,20,50,80);
|
originalBounds = new OpenLayers.Bounds(10,20,50,80);
|
||||||
|
|
||||||
bounds = originalBounds.clone();
|
bounds = originalBounds.clone();
|
||||||
|
|
||||||
//null obj
|
|
||||||
bounds.extend(null);
|
bounds.extend(null);
|
||||||
t.ok(bounds.equals(originalBounds), "null to extend does not crash or change original bounds");
|
t.ok(bounds.equals(originalBounds), "null to extend does not crash or change original bounds");
|
||||||
|
|
||||||
@@ -465,6 +463,7 @@
|
|||||||
bounds.extend(object);
|
bounds.extend(object);
|
||||||
t.ok(bounds.equals(originalBounds), "extend() passing object with no classname does not crash or change original bounds")
|
t.ok(bounds.equals(originalBounds), "extend() passing object with no classname does not crash or change original bounds")
|
||||||
|
|
||||||
|
|
||||||
// obj is bounds
|
// obj is bounds
|
||||||
|
|
||||||
// pushing all limits with bounds obj
|
// pushing all limits with bounds obj
|
||||||
@@ -483,6 +482,7 @@
|
|||||||
bounds.extend(object);
|
bounds.extend(object);
|
||||||
t.ok(bounds.equals(originalBounds), "extend by valid bounds, pushing no limits, correctly does not extend bounds");
|
t.ok(bounds.equals(originalBounds), "extend by valid bounds, pushing no limits, correctly does not extend bounds");
|
||||||
|
|
||||||
|
|
||||||
// obj is lonlat
|
// obj is lonlat
|
||||||
|
|
||||||
// left, bottom
|
// left, bottom
|
||||||
@@ -509,6 +509,7 @@
|
|||||||
(bounds.right == object.lon) &&
|
(bounds.right == object.lon) &&
|
||||||
(bounds.top == object.lat)), "obj lonlat to extends correctly modifies right and top");
|
(bounds.top == object.lat)), "obj lonlat to extends correctly modifies right and top");
|
||||||
|
|
||||||
|
|
||||||
// obj is point
|
// obj is point
|
||||||
|
|
||||||
// left, bottom
|
// left, bottom
|
||||||
|
|||||||
Reference in New Issue
Block a user