From e9eefc7a33824ed511db0e2e9022fe02dd2b9bdf Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Thu, 14 Feb 2013 12:29:03 -0700 Subject: [PATCH] Fewer failing tests There are still tests failing, but this change addresses some of the new failures after 4b163e04826236ad37baa591bca6c381f60c7c85 (which is an awesome improvement despite the test failures :). --- tests/Control/ZoomBox.html | 1 + tests/Layer/WMS.html | 2 +- tests/TileManager.html | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Control/ZoomBox.html b/tests/Control/ZoomBox.html index 2e037192e5..0ff3e6010c 100644 --- a/tests/Control/ZoomBox.html +++ b/tests/Control/ZoomBox.html @@ -23,6 +23,7 @@ function test_zoomBox(t) { t.plan(4); var map = new OpenLayers.Map("map", { + zoomMethod: null, layers: [new OpenLayers.Layer("", {isBaseLayer: true})], center: [0, 0], zoom: 1 diff --git a/tests/Layer/WMS.html b/tests/Layer/WMS.html index 08037e2312..8ceb5874b8 100644 --- a/tests/Layer/WMS.html +++ b/tests/Layer/WMS.html @@ -557,7 +557,7 @@ function test_tileBounds(t) { t.plan(3); - var map = new OpenLayers.Map("map", {projection: "EPSG:3857"}); + var map = new OpenLayers.Map("map", {projection: "EPSG:3857", zoomMethod: null}); var layer = new OpenLayers.Layer.WMS("wms", "../../img/blank.gif"); map.addLayer(layer); map.setCenter([0, 0], 1); diff --git a/tests/TileManager.html b/tests/TileManager.html index b49b1bc1b1..72a58b4922 100644 --- a/tests/TileManager.html +++ b/tests/TileManager.html @@ -8,6 +8,7 @@ var tileManager = new OpenLayers.TileManager(); var map = new OpenLayers.Map('map', { + zoomMethod: null, tileManager: tileManager }); var layer = new OpenLayers.Layer.WMS('WMS1', '../img/blank.gif');