From ef83f182ca40d321a0e288b502c1f2e71ac1aac0 Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 16 Aug 2006 20:45:57 +0000 Subject: [PATCH] do not mess with DEFAULT_PARAMS -- in mozilla, where the tests get called in the opposite order, this was bombing. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1257 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Layer_WMS.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/test_Layer_WMS.html b/tests/test_Layer_WMS.html index e52965590b..1c9085483e 100644 --- a/tests/test_Layer_WMS.html +++ b/tests/test_Layer_WMS.html @@ -14,13 +14,7 @@ function test_01_Layer_WMS_constructor (t) { t.plan( 4 ); - // this is a sneaky trick -- because DEFAULT_PARAMS is actually an - // object, if we modify it in one layer, it is modified permanently. - // this is why we only allow object creation in this manner for constant - // values. Anyways, so create a dummy layer, add a dummy default param - // so that we can later test to see if it is uppercased and included. layer = new OpenLayers.Layer.WMS(); - layer.DEFAULT_PARAMS.chicken = "foo"; var url = "http://octo.metacarta.com/cgi-bin/mapserv"; layer = new OpenLayers.Layer.WMS(name, url, params); @@ -28,7 +22,7 @@ t.eq( layer.url, "http://octo.metacarta.com/cgi-bin/mapserv", "layer.url is correct (HTTPRequest inited)" ); t.eq( layer.params.MAP, "/mapdata/vmap_wms.map", "params passed in correctly uppercased" ); - t.eq( layer.params.CHICKEN, "foo", "default params correclty uppercased and copied"); + t.eq( layer.params.SERVICE, "WMS", "default params correclty uppercased and copied"); }