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:
@@ -5,10 +5,11 @@
|
||||
var map;
|
||||
|
||||
function test_01_Control_LayerSwitcher_constructor (t) {
|
||||
t.plan( 1 );
|
||||
t.plan( 2 );
|
||||
|
||||
control = new OpenLayers.Control.LayerSwitcher();
|
||||
t.ok( control instanceof OpenLayers.Control.LayerSwitcher, "new OpenLayers.Control.LayerSwitcher returns object" );
|
||||
t.eq( control.displayClass, "olControlLayerSwitcher", "displayClass is correct" );
|
||||
}
|
||||
|
||||
function test_02_Control_LayerSwitcher_draw (t) {
|
||||
|
||||
Reference in New Issue
Block a user