Modify tests to work in FF on Mac -- functions are not run alphabetically there, so work needs to be repeated in 'subsequent' calls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@32 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
}
|
||||
function test_02_Bounds_toBBOX(t) {
|
||||
t.plan( 1 );
|
||||
bounds = new OpenLayers.Bounds(1,2,3,4);
|
||||
t.eq( bounds.toBBOX(), "2,1,4,3", "toBBOX() returns correct value." )
|
||||
}
|
||||
// -->
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
|
||||
function test_99_Layer_destroy (t) {
|
||||
t.plan( 1 );
|
||||
layer = new OpenLayers.Layer('Test Layer');
|
||||
layer.destroy();
|
||||
t.eq( layer.map, null, "layer.map is null after destroy" );
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
}
|
||||
function test_2_Map_center(t) {
|
||||
t.plan(4);
|
||||
map = new OpenLayers.Map($('map'));
|
||||
map.setCenter(new OpenLayers.LatLon(1,2), 3);
|
||||
t.ok( map.getCenter() instanceof OpenLayers.LatLon, "map.getCenter returns a LatLon");
|
||||
t.eq( map.getZoom(), 3, "map.zoom is correct after calling setCenter");
|
||||
@@ -27,6 +28,7 @@
|
||||
}
|
||||
function test_99_Map_destroy (t) {
|
||||
t.plan( 2 );
|
||||
map = new OpenLayers.Map($('map'));
|
||||
map.destroy();
|
||||
t.eq( map.layers, null, "map.layers is null after destroy" );
|
||||
t.eq( map.controls, null, "map.controls is null after destroy" );
|
||||
|
||||
Reference in New Issue
Block a user