Add generic 'button' control. r=tschaub. (Closes #872)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5870 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2008-01-24 03:16:42 +00:00
parent 412314e665
commit 81505f54b0
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<html>
<head>
<script src="../../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_Control_Button_constructor (t) {
t.plan( 2 );
control = new OpenLayers.Control.Button();
t.ok( control instanceof OpenLayers.Control.Button, "new OpenLayers.Control returns object" );
t.eq( control.displayClass, "olControlButton", "displayClass is correct" );
}
</script>
</head>
<body>
</body>
</html>