the default controls of the editing and navigation toolbars are not activated, p=jorix, r=me (closes #3268)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11964 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -25,7 +25,18 @@
|
||||
// t.eq( control.div.style.top, "6px", "Control div top located correctly by default");
|
||||
|
||||
}
|
||||
|
||||
function test_Control_NavToolbar_defaultControl (t) {
|
||||
t.plan( 1 );
|
||||
var map = new OpenLayers.Map('map');
|
||||
|
||||
var nav = new OpenLayers.Control.NavToolbar();
|
||||
map.addControl(nav);
|
||||
|
||||
t.eq(nav.controls[0].active, true, "First control is active" );
|
||||
|
||||
map.destroy();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user