From cd8e9a61ec00e0abbb6f12c338ffc522ae430f66 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Wed, 31 May 2006 23:38:25 +0000 Subject: [PATCH] Fix tests, now that I've re-added the zoom-to-world button. git-svn-id: http://svn.openlayers.org/trunk/openlayers@480 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Control_PanZoom.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test_Control_PanZoom.html b/tests/test_Control_PanZoom.html index 6c749f6730..9820966e7e 100644 --- a/tests/test_Control_PanZoom.html +++ b/tests/test_Control_PanZoom.html @@ -27,7 +27,7 @@ t.eq( control2.div.style.top, "100px", "2nd control div is located correctly"); } function test_03_Control_PanZoom_control_events (t) { - t.plan( 6 ); + t.plan( 7 ); var evt = new Object(); map = new OpenLayers.Map('map'); control = new OpenLayers.Control.PanZoom(); @@ -45,8 +45,11 @@ control.buttons[4].onmousedown(evt); control.buttons[4].onmousedown(evt); t.eq( map.getZoom(), 2, "zoomin workds correctly" ); - control.buttons[5].onmousedown(evt); + control.buttons[6].onmousedown(evt); t.eq( map.getZoom(), 1, "zoomout workds correctly" ); + control.buttons[4].onmousedown(evt); + control.buttons[5].onmousedown(evt); + t.eq( map.getZoom(), 0, "zoomworld workds correctly" ); } // -->