From 526c8a6e1e009676c83221f6f4116214670f457c Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 3 Oct 2006 19:52:19 +0000 Subject: [PATCH] nullify these grids on exit so that we dont try to destroy them... which was raising errors when running tests on IE git-svn-id: http://svn.openlayers.org/trunk/openlayers@1552 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Layer_Grid.html | 4 ++++ tests/test_Layer_KaMap.html | 4 ++++ tests/test_Layer_WMS.html | 2 ++ 3 files changed, 10 insertions(+) diff --git a/tests/test_Layer_Grid.html b/tests/test_Layer_Grid.html index 26af11b7fa..9bfa35e520 100644 --- a/tests/test_Layer_Grid.html +++ b/tests/test_Layer_Grid.html @@ -74,6 +74,8 @@ var testBounds = new OpenLayers.Bounds(1,2,3,4); t.ok( bounds.equals(testBounds), "getGridBounds() returns correct bounds") + + layer.grid = null; } function test_05_Layer_Grid_getResolution(t) { @@ -148,6 +150,8 @@ t.eq( clone.tileSize.w, 500, "changing layer.tileSize does not change clone.tileSize -- a fresh copy was made, not just copied reference"); t.eq( clone.alpha, layer.alpha, "alpha copied correctly"); + + layer.grid = null; } function test_11_Layer_Grid_setMap(t) { diff --git a/tests/test_Layer_KaMap.html b/tests/test_Layer_KaMap.html index 7195b984f2..2a8a404637 100644 --- a/tests/test_Layer_KaMap.html +++ b/tests/test_Layer_KaMap.html @@ -67,6 +67,8 @@ var testBounds = new OpenLayers.Bounds(1,2,3,4); t.ok( bounds.equals(testBounds), "getKaMapBounds() returns correct bounds") + + layer.grid = null; } function test_05_Layer_KaMap_getResolution(t) { @@ -141,6 +143,8 @@ t.eq( clone.tileSize.w, 500, "changing layer.tileSize does not change clone.tileSize -- a fresh copy was made, not just copied reference"); t.eq( clone.alpha, layer.alpha, "alpha copied correctly"); + + layer.grid = null; } function test_11_Layer_KaMap_setMap(t) { diff --git a/tests/test_Layer_WMS.html b/tests/test_Layer_WMS.html index 04de0b2057..d702dab1d1 100644 --- a/tests/test_Layer_WMS.html +++ b/tests/test_Layer_WMS.html @@ -86,6 +86,8 @@ t.eq( clone.tileSize.w, 500, "changing layer.tileSize does not change clone.tileSize -- a fresh copy was made, not just copied reference"); t.eq( clone.alpha, layer.alpha, "alpha copied correctly"); + + layer.grid = null; } function test_05_Layer_WMS_isBaseLayer(t) {