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) {
|
function test_02_Bounds_toBBOX(t) {
|
||||||
t.plan( 1 );
|
t.plan( 1 );
|
||||||
|
bounds = new OpenLayers.Bounds(1,2,3,4);
|
||||||
t.eq( bounds.toBBOX(), "2,1,4,3", "toBBOX() returns correct value." )
|
t.eq( bounds.toBBOX(), "2,1,4,3", "toBBOX() returns correct value." )
|
||||||
}
|
}
|
||||||
// -->
|
// -->
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
function test_99_Layer_destroy (t) {
|
function test_99_Layer_destroy (t) {
|
||||||
t.plan( 1 );
|
t.plan( 1 );
|
||||||
|
layer = new OpenLayers.Layer('Test Layer');
|
||||||
layer.destroy();
|
layer.destroy();
|
||||||
t.eq( layer.map, null, "layer.map is null after destroy" );
|
t.eq( layer.map, null, "layer.map is null after destroy" );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
}
|
}
|
||||||
function test_2_Map_center(t) {
|
function test_2_Map_center(t) {
|
||||||
t.plan(4);
|
t.plan(4);
|
||||||
|
map = new OpenLayers.Map($('map'));
|
||||||
map.setCenter(new OpenLayers.LatLon(1,2), 3);
|
map.setCenter(new OpenLayers.LatLon(1,2), 3);
|
||||||
t.ok( map.getCenter() instanceof OpenLayers.LatLon, "map.getCenter returns a LatLon");
|
t.ok( map.getCenter() instanceof OpenLayers.LatLon, "map.getCenter returns a LatLon");
|
||||||
t.eq( map.getZoom(), 3, "map.zoom is correct after calling setCenter");
|
t.eq( map.getZoom(), 3, "map.zoom is correct after calling setCenter");
|
||||||
@@ -27,6 +28,7 @@
|
|||||||
}
|
}
|
||||||
function test_99_Map_destroy (t) {
|
function test_99_Map_destroy (t) {
|
||||||
t.plan( 2 );
|
t.plan( 2 );
|
||||||
|
map = new OpenLayers.Map($('map'));
|
||||||
map.destroy();
|
map.destroy();
|
||||||
t.eq( map.layers, null, "map.layers is null after destroy" );
|
t.eq( map.layers, null, "map.layers is null after destroy" );
|
||||||
t.eq( map.controls, null, "map.controls is null after destroy" );
|
t.eq( map.controls, null, "map.controls is null after destroy" );
|
||||||
|
|||||||
Reference in New Issue
Block a user