remove doubled up test_map_center.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8408 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -44,20 +44,6 @@
|
||||
t.ok(map.maxExtent.equals(new OpenLayers.Bounds(100, 200, 300, 400)),
|
||||
"maxExtent is correct after calling setOptions");
|
||||
}
|
||||
|
||||
function test_Map_center(t) {
|
||||
t.plan(3);
|
||||
map = new OpenLayers.Map('map');
|
||||
var baseLayer = new OpenLayers.Layer.WMS("Test Layer",
|
||||
"http://octo.metacarta.com/cgi-bin/mapserv?",
|
||||
{map: "/mapdata/vmap_wms.map", layers: "basic"});
|
||||
map.addLayer(baseLayer);
|
||||
var ll = new OpenLayers.LonLat(2,1);
|
||||
map.setCenter(ll, 0);
|
||||
t.ok( map.getCenter() instanceof OpenLayers.LonLat, "map.getCenter returns a LonLat");
|
||||
t.eq( map.getZoom(), 0, "map.zoom is correct after calling setCenter");
|
||||
t.ok( map.getCenter().equals(ll), "map center is correct after calling setCenter");
|
||||
}
|
||||
|
||||
function test_Map_add_layers(t) {
|
||||
t.plan(6);
|
||||
@@ -122,6 +108,9 @@
|
||||
map.addLayer(baseLayer);
|
||||
var ll = new OpenLayers.LonLat(2,1);
|
||||
map.setCenter(ll, 0);
|
||||
t.ok( map.getCenter() instanceof OpenLayers.LonLat, "map.getCenter returns a LonLat");
|
||||
t.eq( map.getZoom(), 0, "map.zoom is correct after calling setCenter");
|
||||
t.ok( map.getCenter().equals(ll), "map center is correct after calling setCenter");
|
||||
map.zoomIn();
|
||||
t.eq( map.getZoom(), 1, "map.zoom is correct after calling setCenter,zoom in");
|
||||
t.ok( map.getCenter().equals(ll), "map center is correct after calling setCenter, zoom in");
|
||||
|
||||
Reference in New Issue
Block a user