From 5fda900240a2a1885e7016da91a2082f985e2009 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 28 Jun 2006 23:49:49 +0000 Subject: [PATCH] Commit a test for maxResolution: 'auto', maxResolution: null git-svn-id: http://svn.openlayers.org/trunk/openlayers@824 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Map.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_Map.html b/tests/test_Map.html index 9760bbaf81..031ce07918 100644 --- a/tests/test_Map.html +++ b/tests/test_Map.html @@ -149,6 +149,13 @@ } t.ok(!found, "popup.div successfully removed from the map's viewPort"); } + function test_10_Map_auto_res(t) { + t.plan(2); + map = new OpenLayers.Map($('map'), {maxZoomLevel: 5, maxResolution: 'auto'}); + t.eq( map.maxResolution, 1/3, "map.maxResolution set correctly via auto" ); + map = new OpenLayers.Map($('map'), {maxZoomLevel: 5, maxResolution: null}); + t.eq( map.maxResolution, 1/3, "map.maxResolution set correctly via null" ); + } /*** THIS IS A GOOD TEST, BUT IT SHOULD BE MOVED TO WMS. * Also, it won't work until we figure out the viewSize bug @@ -209,6 +216,6 @@ -
+