Changeset 269 for trunk/openlayers/tests
- Timestamp:
- 05/22/06 13:25:46 (3 years ago)
- Files:
-
- trunk/openlayers/tests/test_Control_PanZoom.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/test_Control_PanZoom.html
r255 r269 11 11 } 12 12 function test_02_Control_PanZoom_addControl (t) { 13 t.plan( 6);13 t.plan( 8 ); 14 14 map = new OpenLayers.Map('map'); 15 15 control = new OpenLayers.Control.PanZoom(); 16 16 t.ok( control instanceof OpenLayers.Control.PanZoom, "new OpenLayers.Control.PanZoom returns object" ); 17 17 t.ok( map instanceof OpenLayers.Map, "new OpenLayers.Map creates map" ); 18 map.addControl(control, 19 new OpenLayers.Pixel(10,10)); 18 map.addControl(control); 20 19 t.ok( control.map === map, "Control.map is set to the map object" ); 21 20 t.ok( map.controls[2] === control, "map.controls contains control" ); 22 21 t.eq( control.div.style.zIndex, "253", "Control div zIndexed properly" ); 23 22 t.eq( map.viewPortDiv.lastChild.style.zIndex, "253", "Viewport div contains control div" ); 23 t.eq( control.div.style.top, "4px", "Control div top located correctly by default"); 24 25 var control2 = new OpenLayers.Control.PanZoom(); 26 map.addControl(control2, new OpenLayers.Pixel(100,100)); 27 t.eq( control2.div.style.top, "100px", "2nd control div is located correctly"); 24 28 } 25 29 function test_03_Control_PanZoom_control_events (t) {
