From a6f794be8ddc31b8be68e69d23769ed6535a6a22 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Sun, 14 May 2006 02:50:38 +0000 Subject: [PATCH] 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 --- tests/test_Bounds.html | 1 + tests/test_Layer.html | 1 + tests/test_Map.html | 2 ++ 3 files changed, 4 insertions(+) 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" );