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:
Éric Lemoine
2011-05-10 07:09:17 +00:00
parent fef7e4febf
commit e1be8e9dfb
6 changed files with 49 additions and 3 deletions

View File

@@ -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>