From 8f38213e86dad6a2b25ecb11fcf079a07913522b Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 12 Dec 2007 17:45:39 +0000 Subject: [PATCH] scope matters git-svn-id: http://svn.openlayers.org/trunk/openlayers@5384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Control/test_MousePosition.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Control/test_MousePosition.html b/tests/Control/test_MousePosition.html index 62b7d721c2..98575dd4e5 100644 --- a/tests/Control/test_MousePosition.html +++ b/tests/Control/test_MousePosition.html @@ -39,14 +39,14 @@ function test_02_Control_MousePosition_redraw_noLayer_displayProjection(t) { t.plan(3); - control = new OpenLayers.Control.MousePosition(); - map = new OpenLayers.Map('map'); + var control = new OpenLayers.Control.MousePosition(); + var map = new OpenLayers.Map('map'); map.addControl(control); t.eq(control.div.innerHTML, "0.00000, 0.00000", "innerHTML set correctly"); control.redraw({'xy': new OpenLayers.Pixel(10,10)}); control.redraw({'xy': new OpenLayers.Pixel(12,12)}); t.eq(control.div.innerHTML, "0.00000, 0.00000", "innerHTML set correctly"); - l = new OpenLayers.Layer('name', {'isBaseLayer': true}); + var l = new OpenLayers.Layer('name', {'isBaseLayer': true}); map.addLayer(l); map.zoomToMaxExtent(); control.redraw({'xy': new OpenLayers.Pixel(10,10)});