From 2197f1656a80a99b97ff94fb9bbcec0f6c44a384 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Fri, 31 Aug 2012 11:11:34 +0200 Subject: [PATCH] Updating row/col sizes in tests (see #639) --- tests/Layer/ArcGIS93Rest.html | 4 ++-- tests/Layer/KaMap.html | 8 ++++---- tests/Layer/WMS.html | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Layer/ArcGIS93Rest.html b/tests/Layer/ArcGIS93Rest.html index 2d4496b783..6c00732e4e 100644 --- a/tests/Layer/ArcGIS93Rest.html +++ b/tests/Layer/ArcGIS93Rest.html @@ -95,8 +95,8 @@ layer = new OpenLayers.Layer.ArcGIS93Rest(name, url, params, {buffer: 2}); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(0,0),5); - t.eq( layer.grid.length, 7, "Grid rows is correct." ); - t.eq( layer.grid[0].length, 6, "Grid cols is correct." ); + t.eq( layer.grid.length, 8, "Grid rows is correct." ); + t.eq( layer.grid[0].length, 7, "Grid cols is correct." ); map.destroy(); } diff --git a/tests/Layer/KaMap.html b/tests/Layer/KaMap.html index b22917fda0..c6b5ba773c 100644 --- a/tests/Layer/KaMap.html +++ b/tests/Layer/KaMap.html @@ -45,17 +45,17 @@ map.setCenter(new OpenLayers.LonLat(0, 0), 4); t.eq( layer0.grid.length, 3, "Grid rows with buffer:0" ); map.setBaseLayer(layer1); - t.eq( layer1.grid.length, 4, "Grid rows with buffer:1" ); + t.eq( layer1.grid.length, 5, "Grid rows with buffer:1" ); map.setBaseLayer(layer2); - t.eq( layer2.grid.length, 6, "Grid rows with buffer:2" ); + t.eq( layer2.grid.length, 7, "Grid rows with buffer:2" ); // zooming in on Greenland exercises the bug from pre-r4313 map.setCenter(new OpenLayers.LonLat(0, 90), 4); t.eq( layer0.grid.length, 3, "Grid rows with buffer:0" ); map.setBaseLayer(layer1); - t.eq( layer1.grid.length, 4, "Grid rows with buffer:1" ); + t.eq( layer1.grid.length, 5, "Grid rows with buffer:1" ); map.setBaseLayer(layer2); - t.eq( layer2.grid.length, 6, "Grid rows with buffer:2" ); + t.eq( layer2.grid.length, 7, "Grid rows with buffer:2" ); map.destroy(); } diff --git a/tests/Layer/WMS.html b/tests/Layer/WMS.html index 7d412a7c04..0e9fb9a8fc 100644 --- a/tests/Layer/WMS.html +++ b/tests/Layer/WMS.html @@ -136,8 +136,8 @@ layer = new OpenLayers.Layer.WMS(name, url, params, {buffer:2}); map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(0,0),5); - t.eq( layer.grid.length, 7, "Grid rows is correct." ); - t.eq( layer.grid[0].length, 6, "Grid cols is correct." ); + t.eq( layer.grid.length, 8, "Grid rows is correct." ); + t.eq( layer.grid[0].length, 7, "Grid cols is correct." ); map.destroy(); }