diff --git a/tests/test_Bounds.html b/tests/test_Bounds.html
index 666baa44ea..3d827163a2 100644
--- a/tests/test_Bounds.html
+++ b/tests/test_Bounds.html
@@ -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." )
}
// -->
diff --git a/tests/test_Layer.html b/tests/test_Layer.html
index 3080eee96f..a0785ade6d 100644
--- a/tests/test_Layer.html
+++ b/tests/test_Layer.html
@@ -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" );
}
diff --git a/tests/test_Map.html b/tests/test_Map.html
index de9f90ba14..e55c134b5b 100644
--- a/tests/test_Map.html
+++ b/tests/test_Map.html
@@ -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" );