scope matters
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -39,14 +39,14 @@
|
|||||||
|
|
||||||
function test_02_Control_MousePosition_redraw_noLayer_displayProjection(t) {
|
function test_02_Control_MousePosition_redraw_noLayer_displayProjection(t) {
|
||||||
t.plan(3);
|
t.plan(3);
|
||||||
control = new OpenLayers.Control.MousePosition();
|
var control = new OpenLayers.Control.MousePosition();
|
||||||
map = new OpenLayers.Map('map');
|
var map = new OpenLayers.Map('map');
|
||||||
map.addControl(control);
|
map.addControl(control);
|
||||||
t.eq(control.div.innerHTML, "0.00000, 0.00000", "innerHTML set correctly");
|
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(10,10)});
|
||||||
control.redraw({'xy': new OpenLayers.Pixel(12,12)});
|
control.redraw({'xy': new OpenLayers.Pixel(12,12)});
|
||||||
t.eq(control.div.innerHTML, "0.00000, 0.00000", "innerHTML set correctly");
|
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.addLayer(l);
|
||||||
map.zoomToMaxExtent();
|
map.zoomToMaxExtent();
|
||||||
control.redraw({'xy': new OpenLayers.Pixel(10,10)});
|
control.redraw({'xy': new OpenLayers.Pixel(10,10)});
|
||||||
|
|||||||
Reference in New Issue
Block a user