From e5c79b378d4e1415545a6214161260d25d591cf2 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 30 Jul 2008 22:49:21 +0000 Subject: [PATCH] last bit of tabs. sorry this was so clunky, in the middle of another patch. (no functional change) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Map.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/Map.html b/tests/Map.html index 89c56fabf7..a8a334fad1 100644 --- a/tests/Map.html +++ b/tests/Map.html @@ -1028,13 +1028,13 @@ t.eq( map.controls, null, "map.controls is null after destroy" ); t.eq( map.viewPortDiv, null, "map's viewportDiv nullified"); } - + function test_Map_getMaxExtent(t){ t.plan(5); - - var options = null; - var map = {}; - + + var options = null; + var map = {}; + //null options, no baseLayer var maxExtent = OpenLayers.Map.prototype.getMaxExtent.apply(map, [options]); t.eq(maxExtent, null, "null options, no baseLayer returns null"); @@ -1049,17 +1049,17 @@ //true options.restricted, valid map.restrictedExtent no baseLayer options = { - 'restricted': true - }; + 'restricted': true + }; map.restrictedExtent = {}; maxExtent = OpenLayers.Map.prototype.getMaxExtent.apply(map, [options]); t.ok(maxExtent == map.restrictedExtent, "true options.restricted, valid map.restrictedExtent no baseLayer returns map.restrictedExtent"); //null options, valid baseLayer - options = null; + options = null; map.baseLayer = { - 'maxExtent': {} - }; + 'maxExtent': {} + }; var maxExtent = OpenLayers.Map.prototype.getMaxExtent.apply(map, [options]); t.ok(maxExtent == map.baseLayer.maxExtent, "null options, valid baseLayer returns map.baseLayer.maxExtent"); } @@ -1077,8 +1077,8 @@ 'zoomToExtent': function(extent) { t.ok(extent == gMaxExtent, "zoomToExtent() always called on return from map.getMaxExtent()"); } - }; - + }; + //options is null var options = null; gRestricted = null; @@ -1087,8 +1087,8 @@ //valid options options = { - 'restricted': {} - }; + 'restricted': {} + }; gRestricted = null; OpenLayers.Map.prototype.zoomToMaxExtent.apply(map, [options]); t.ok(gRestricted == options.restricted, "when valid options argument, 'options.restricted' passed to map.getMaxExtent()");