diff --git a/tests/Control/ZoomIn.html b/tests/Control/ZoomIn.html index b89165374b..6279b1be59 100644 --- a/tests/Control/ZoomIn.html +++ b/tests/Control/ZoomIn.html @@ -25,6 +25,24 @@ function test_ZoomIn_constructor (t) { control.destroy(); } +function test_ZoomIn_type (t) { + t.plan( 1 ); + + // setup + var control = new OpenLayers.Control.ZoomIn(); + + // tests + // + t.eq( + control.type, + OpenLayers.Control.TYPE_BUTTON, + "ZoomIn control is of type OpenLayers.Control.TYPE_BUTTON" + ); + + // tear down + control.destroy(); +} + function test_ZoomIn_trigger (t) { t.plan( 2 ); diff --git a/tests/Control/ZoomOut.html b/tests/Control/ZoomOut.html index 38ef93de59..268e5c2f57 100644 --- a/tests/Control/ZoomOut.html +++ b/tests/Control/ZoomOut.html @@ -25,6 +25,24 @@ function test_ZoomOut_constructor (t) { control.destroy(); } +function test_ZoomOut_type (t) { + t.plan( 1 ); + + // setup + var control = new OpenLayers.Control.ZoomOut(); + + // tests + // + t.eq( + control.type, + OpenLayers.Control.TYPE_BUTTON, + "ZoomOut control is of type OpenLayers.Control.TYPE_BUTTON" + ); + + // tear down + control.destroy(); +} + function test_ZoomOut_trigger (t) { t.plan( 2 ); diff --git a/tests/Control/ZoomToMaxExtent.html b/tests/Control/ZoomToMaxExtent.html index d22c24717b..fb6d15e35b 100644 --- a/tests/Control/ZoomToMaxExtent.html +++ b/tests/Control/ZoomToMaxExtent.html @@ -25,6 +25,24 @@ function test_ZoomToMaxExtent_constructor (t) { control.destroy(); } +function test_ZoomToMaxExtent_type (t) { + t.plan( 1 ); + + // setup + var control = new OpenLayers.Control.ZoomToMaxExtent(); + + // tests + // + t.eq( + control.type, + OpenLayers.Control.TYPE_BUTTON, + "ZoomToMaxExtent control is of type 'OpenLayers.Control.TYPE_BUTTON'" + ); + + // tear down + control.destroy(); +} + function test_ZoomToMaxExtent_trigger (t) { t.plan( 2 );