Changeset 4334
- Timestamp:
- 09/16/07 12:01:51 (1 year ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (1 diff)
- trunk/openlayers/tests/test_Map.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Map.js
r4302 r4334 342 342 this.controls = [ new OpenLayers.Control.Navigation(), 343 343 new OpenLayers.Control.PanZoom(), 344 new OpenLayers.Control.ArgParser() 344 new OpenLayers.Control.ArgParser(), 345 new OpenLayers.Control.Attribution() 345 346 ]; 346 347 } else { trunk/openlayers/tests/test_Map.html
r4261 r4334 8 8 9 9 function test_01_Map_constructor (t) { 10 t.plan( 9);10 t.plan( 10 ); 11 11 12 12 map = new OpenLayers.Map('map'); … … 28 28 t.ok( map.layers instanceof Array, "map.layers is an Array" ); 29 29 t.ok( map.controls instanceof Array, "map.controls is an Array" ); 30 t.eq( map.controls.length, 4, "Default map has 4 controls." ); 30 31 t.ok( map.events instanceof OpenLayers.Events, "map.events is an OpenLayers.Events" ); 31 32 t.ok( map.getMaxExtent() instanceof OpenLayers.Bounds, "map.maxExtent is an OpenLayers.Bounds" );
