From 2ab99c6c8daca528e302379b6ecabd3d264e4d68 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 20 Jun 2006 19:26:06 +0000 Subject: [PATCH] Tests changed per new default maxResolution. git-svn-id: http://svn.openlayers.org/trunk/openlayers@624 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Control_PanZoom.html | 4 ++-- tests/test_Layer_WMS.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_Control_PanZoom.html b/tests/test_Control_PanZoom.html index 9820966e7e..16d6154705 100644 --- a/tests/test_Control_PanZoom.html +++ b/tests/test_Control_PanZoom.html @@ -35,9 +35,9 @@ new OpenLayers.Pixel(20,20)); map.setCenter(new OpenLayers.LonLat(0,0), 0); control.buttons[0].onmousedown(evt); - t.eq( map.getCenter().lat, 360/1024*50, "Pan up works correctly" ); + t.eq( map.getCenter().lat, 1.40625*50, "Pan up works correctly" ); control.buttons[1].onmousedown(evt); - t.eq( map.getCenter().lon, -360/1024*50, "Pan left works correctly" ); + t.eq( map.getCenter().lon, 1.40625*-50, "Pan left works correctly" ); control.buttons[2].onmousedown(evt); t.eq( map.getCenter().lon, 0, "Pan right works correctly" ); control.buttons[3].onmousedown(evt); diff --git a/tests/test_Layer_WMS.html b/tests/test_Layer_WMS.html index 7cbdf46147..94e590bcfc 100644 --- a/tests/test_Layer_WMS.html +++ b/tests/test_Layer_WMS.html @@ -47,8 +47,8 @@ layer = new OpenLayers.Layer.WMS('Test Layer', "http://octo.metacarta.com/cgi-bin/mapserv", {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'}); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(0,0),5); - t.eq( layer.grid.length, 3, "Grid rows is correct." ); - t.eq( layer.grid[0].length, 3, "Grid cols is correct." ); + t.eq( layer.grid.length, 4, "Grid rows is correct." ); + t.eq( layer.grid[0].length, 2, "Grid cols is correct." ); }