Commit patch for #788, "Control displayClass is not correct if CLASS_NAME

contains >= 2 periods"  from fredj, who is a wonderful contributor who not only
wrote code, and tests, but upgraded all the existing control tests, because he
is just that full of awesome. (Thanks Fred!) 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3534 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-06-29 09:54:20 +00:00
parent 33c87bf3b6
commit ee326b9440
10 changed files with 22 additions and 13 deletions

View File

@@ -4,9 +4,10 @@
<script type="text/javascript"><!--
var map;
function test_01_Control_NavToolbar_constructor (t) {
t.plan( 3 );
t.plan( 4 );
control = new OpenLayers.Control.NavToolbar();
t.ok( control instanceof OpenLayers.Control.NavToolbar, "new OpenLayers.Control.NavToolbar returns object" );
t.eq( control.displayClass, "olControlNavToolbar", "displayClass is correct" );
t.ok( control.controls[0] instanceof OpenLayers.Control.Navigation, "NavToolbar contains Control.Navigation object" );
t.ok( control.controls[1] instanceof OpenLayers.Control.ZoomBox, "NavToolbar contains Control.ZoomBox object" );
}