From 555a014fa5dfb4d571a00f3d5195845e2d704f86 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 15 Mar 2007 04:26:35 +0000 Subject: [PATCH] r2726 breaks a test for incorrect behavior. This is what I get for writing my tests against the current output -- you may not break backwards compaatibility, but that doesn't mean your functionality works! Fix broken mousetoolbar test. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2783 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Control_MouseToolbar.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_Control_MouseToolbar.html b/tests/test_Control_MouseToolbar.html index 85fea77eba..dda3f8a8e7 100644 --- a/tests/test_Control_MouseToolbar.html +++ b/tests/test_Control_MouseToolbar.html @@ -10,7 +10,7 @@ t.ok( control instanceof OpenLayers.Control.MouseToolbar, "new OpenLayers.Control.MouseToolbar returns object" ); } function test_02_Control_MouseToolbar_addControl (t) { - t.plan( 7 ); + t.plan( 8 ); map = new OpenLayers.Map('map'); control = new OpenLayers.Control.MouseToolbar(); t.ok( control instanceof OpenLayers.Control.MouseToolbar, "new OpenLayers.Control.MouseToolbar returns object" ); @@ -20,7 +20,8 @@ t.ok( map.controls[3] === control, "map.controls contains control" ); t.eq( parseInt(control.div.style.zIndex), map.Z_INDEX_BASE['Control'] + 4, "Control div zIndexed properly" ); t.eq( parseInt(map.viewPortDiv.lastChild.style.zIndex), map.Z_INDEX_BASE['Control'] + 4, "Viewport div contains control div" ); - t.eq( control.div.style.top, "6px", "Control div top located correctly by default"); + t.eq( control.div.style.top, "300px", "Control div top located correctly by default"); + t.eq( control.div.style.left, "6px", "Control div left located correctly by default"); } function test_03_Control_MouseToolbar_control_events (t) {