From be936216a0540ea2cda5ce7a312121bc1317d274 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 29 May 2006 18:09:31 +0000 Subject: [PATCH] fix panzoom test to set to control constant from map. this test breakage was introduced (by me) in r404. git-svn-id: http://svn.openlayers.org/trunk/openlayers@453 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Control_PanZoom.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_Control_PanZoom.html b/tests/test_Control_PanZoom.html index 3fdd8b636e..6c749f6730 100644 --- a/tests/test_Control_PanZoom.html +++ b/tests/test_Control_PanZoom.html @@ -18,8 +18,8 @@ map.addControl(control); t.ok( control.map === map, "Control.map is set to the map object" ); t.ok( map.controls[2] === control, "map.controls contains control" ); - t.eq( parseInt(control.div.style.zIndex), 253, "Control div zIndexed properly" ); - t.eq( parseInt(map.viewPortDiv.lastChild.style.zIndex), 253, "Viewport div contains control div" ); + t.eq( parseInt(control.div.style.zIndex), map.Z_INDEX_BASE['Control'] + 3, "Control div zIndexed properly" ); + t.eq( parseInt(map.viewPortDiv.lastChild.style.zIndex), map.Z_INDEX_BASE['Control'] + 3, "Viewport div contains control div" ); t.eq( control.div.style.top, "4px", "Control div top located correctly by default"); var control2 = new OpenLayers.Control.PanZoom();