From 9f53506754900e35da35ed2065c0101a9799f2ae Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 24 Apr 2013 14:15:12 +0200 Subject: [PATCH] Tile bounds changed with #517 to remove white lines between tiles --- tests/deprecated/Layer/MapServer.html | 9 ++++----- tests/deprecated/Layer/WMS.html | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/deprecated/Layer/MapServer.html b/tests/deprecated/Layer/MapServer.html index 27ce63dd20..101646e933 100644 --- a/tests/deprecated/Layer/MapServer.html +++ b/tests/deprecated/Layer/MapServer.html @@ -31,11 +31,10 @@ map.addLayer(layer); map.setCenter(new OpenLayers.LonLat(0,0), 5); var tile = layer.grid[0][0]; - tile.draw(true); // the tile queue defers the drawing - t.eq( tile.bounds.left, -22.5, "left side matches" ); - t.eq( tile.bounds.right, -11.25, "top side matches" ); - t.eq( tile.bounds.bottom.toFixed(6), '11.178402', "bottom side matches" ); - t.eq( tile.bounds.top.toFixed(6), '21.943046', "top side matches" ); + t.eq( tile.bounds.left, -22.5, "left side matches" ); + t.eq( tile.bounds.right, -11.25, "right side matches" ); + t.eq( tile.bounds.bottom.toFixed(6), '11.781325', "bottom side matches" ); + t.eq( tile.bounds.top.toFixed(6), '22.512557', "top side matches" ); map.destroy(); } else { t.plan(1); diff --git a/tests/deprecated/Layer/WMS.html b/tests/deprecated/Layer/WMS.html index 523d6eef12..4cbf6e2297 100644 --- a/tests/deprecated/Layer/WMS.html +++ b/tests/deprecated/Layer/WMS.html @@ -1,3 +1,4 @@ + @@ -31,11 +32,10 @@ map.addLayer(wmslayer); map.setCenter(new OpenLayers.LonLat(0,0), 5); var tile = wmslayer.grid[0][0]; - tile.draw(true); // the tile queue defers the drawing t.eq( tile.bounds.left, -22.5, "left side matches" ); t.eq( tile.bounds.right, -11.25, "right side matches" ); - t.eq( tile.bounds.bottom.toFixed(6), '11.178402', "bottom side matches" ); - t.eq( tile.bounds.top.toFixed(6), '21.943046', "top side matches" ); + t.eq( tile.bounds.bottom.toFixed(6), '11.781325', "bottom side matches" ); + t.eq( tile.bounds.top.toFixed(6), '22.512557', "top side matches" ); map.destroy(); } else { t.plan(1);