Add support to set the 'title' property of a control such that it will
be displayed when hovering over the control in a control.panel via its panel_div. r=me (Closes #822) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5910 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -21,7 +21,14 @@
|
||||
t.ok(control.map === map, "Control.map is set to the map object" );
|
||||
t.ok(map.controls[map.controls.length - 1] === control, "map.controls contains control");
|
||||
}
|
||||
|
||||
|
||||
function test_Control_title(t) {
|
||||
t.plan( 1 );
|
||||
var titleText = 'Title test';
|
||||
control = new OpenLayers.Control({title:titleText});
|
||||
t.eq( control.title, titleText, "control.title set correctly" );
|
||||
}
|
||||
|
||||
function test_Control_destroy(t) {
|
||||
t.plan(3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user