add anonymous username to url to prevent basic auth challenge when running tests. (Closes #1460) Update by madair, r=me

git-svn-id: http://svn.openlayers.org/trunk/openlayers@7646 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Paul Spencer
2008-07-31 18:47:29 +00:00
parent 19ac2bec2d
commit a2905538d8

View File

@@ -9,7 +9,7 @@
var layer;
var name = 'MapGuide Test Layer';
var url = "http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi";
var url = "http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&";
var paramsTiled = {
mapdefinition: 'Library://Samples/Gmap/Maps/gmapTiled.MapDefinition',
basemaplayergroupname: "BaseLayerGroup"
@@ -27,7 +27,7 @@
layer = new OpenLayers.Layer.MapGuide(name, url, paramsUntiled, options);
t.ok( layer instanceof OpenLayers.Layer.MapGuide, "new OpenLayers.Layer.MapGuide returns object" );
t.eq( layer.url, "http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi", "layer.url is correct (HTTPRequest inited)" );
t.eq( layer.url, "http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&", "layer.url is correct (HTTPRequest inited)" );
t.eq( layer.params.mapdefinition, "Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition", "params passed in correctly" );
t.eq( layer.params.operation, "GETMAPIMAGE", "default params set correctly and copied");
@@ -56,7 +56,7 @@
layer = new OpenLayers.Layer.MapGuide(name, url, paramsTiled, options);
t.ok( layer instanceof OpenLayers.Layer.MapGuide, "new OpenLayers.Layer.MapGuide returns object" );
t.eq( layer.url, "http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi", "layer.url is correct (HTTPRequest inited)" );
t.eq( layer.url, "http://demo01.dmsolutions.ca/mapguide/mapagent/mapagent.fcgi?USERNAME=Anonymous&", "layer.url is correct (HTTPRequest inited)" );
t.eq( layer.params.basemaplayergroupname, "BaseLayerGroup", "params passed in correctly" );
t.eq( layer.params.operation, "GETTILEIMAGE", "default params correctly uppercased and copied");