Add a test for map.setCenter().
git-svn-id: http://svn.openlayers.org/trunk/openlayers@18 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
+5
-1
@@ -17,7 +17,11 @@
|
|||||||
t.ok( map.controls instanceof Array, "map.controls is an Array" );
|
t.ok( map.controls instanceof Array, "map.controls is an Array" );
|
||||||
t.ok( map.events instanceof OpenLayers.Events, "map.events is an OpenLayers.Events" );
|
t.ok( map.events instanceof OpenLayers.Events, "map.events is an OpenLayers.Events" );
|
||||||
}
|
}
|
||||||
|
function test_2_Map_center(t) {
|
||||||
|
t.plan(1);
|
||||||
|
map.setCenter(new OpenLayers.LatLon(0,0), 0);
|
||||||
|
t.ok( map.getCenter() instanceof OpenLayers.LatLon, "map.getCenter returns a LatLon");
|
||||||
|
}
|
||||||
function test_99_Map_destroy (t) {
|
function test_99_Map_destroy (t) {
|
||||||
t.plan( 2 );
|
t.plan( 2 );
|
||||||
map.destroy();
|
map.destroy();
|
||||||
|
|||||||
Reference in New Issue
Block a user