From 4e9da707a136023a95db15275d813c1fb82b2d5d Mon Sep 17 00:00:00 2001 From: bartvde Date: Thu, 28 Apr 2011 10:14:11 +0000 Subject: [PATCH] OWSContext/v0_3_1.html tests fail in IE8, r=erilem (closes #3278) git-svn-id: http://svn.openlayers.org/trunk/openlayers@11924 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Format/OWSContext/v0_3_1.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/Format/OWSContext/v0_3_1.html b/tests/Format/OWSContext/v0_3_1.html index 9c7a879471..938fee27d1 100644 --- a/tests/Format/OWSContext/v0_3_1.html +++ b/tests/Format/OWSContext/v0_3_1.html @@ -34,7 +34,7 @@ ' ' + ' ' + @@ -54,7 +54,7 @@ t.ok(context.layers[0].queryable, "WMS layer is queryable"); t.eq(context.layers[0].name, "Tiger 2005fe major roads/railways", "Title correctly set"); t.ok(context.layers[1].protocol instanceof OpenLayers.Protocol.WFS.v1_0_0, "Vector layer configured with a WFS Protocol"); - t.eq(context.layers[1].protocol.url, "http://sigma.openplans.org:8080/geoserver/wfs?", "WFS url set correctly"); + t.eq(context.layers[1].protocol.url, "geoserver/wfs?", "WFS url set correctly"); t.ok(context.layers[1].strategies[0] instanceof OpenLayers.Strategy.BBOX, "BBOX strategy configured correctly"); t.eq(context.layers[1].name, "GNIS Population", "Title of second layer correctly set"); t.eq(context.layers[1].getVisibility(), true, "Second layer is visible"); @@ -79,7 +79,7 @@ var wfs = new OpenLayers.Layer.Vector("myroads", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ - url: "http://foo/wfs", + url: "foo/wfs?", featureType: "roads", featureNS: "http://foo/myns" }) @@ -89,7 +89,7 @@ var owc = new OpenLayers.Format.OWSContext(); var output = owc.write(map, {id: 'foo'}); - var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContext'; + var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContext'; t.xml_eq(output, expected, "OWSContext with a WMS and a WFS layer generated correctly"); } @@ -139,11 +139,11 @@ function test_read_gml(t) { t.plan(5); - var text = '-117.44667178362664 32.57086210449395-116.74066794885977 32.921986352104064OWS Context version 0.3.0 examplesBoston Landuse Polygons50005000099'; + var text = '-117.44667178362664 32.57086210449395-116.74066794885977 32.921986352104064OWS Context version 0.3.0 examplesBoston Landuse Polygons50005000099'; var parser = new OpenLayers.Format.OWSContext(); var context = parser.read(text, {map: 'map'}); t.ok(context.layers[1].protocol instanceof OpenLayers.Protocol.HTTP, "serviceType GML is translated into an HTTP Protocol"); - t.eq(context.layers[1].protocol.url, "http://www.cadcorpdev.co.uk/gml/MassGIS/LandUse.gml", "Url of GML file correctly set"); + t.eq(context.layers[1].protocol.url, "gml/MassGIS/LandUse.gml", "Url of GML file correctly set"); t.ok(context.layers[1].protocol.format instanceof OpenLayers.Format.GML, "GML Format associated with protocol"); t.eq(Math.round(context.layers[1].minScale), 50000, "Minscale correctly read"); t.eq(Math.round(context.layers[1].maxScale), 5000, "Maxscale correctly read"); @@ -151,11 +151,11 @@ function test_read_kml(t) { t.plan(3); - var text = '-5.986328125 27.915039062515.986328125 52.0849609375OpenLayers OWSContextKML'; + var text = '-5.986328125 27.915039062515.986328125 52.0849609375OpenLayers OWSContextKML'; var parser = new OpenLayers.Format.OWSContext(); var context = parser.read(text, {map: 'map'}); t.ok(context.layers[1].protocol instanceof OpenLayers.Protocol.HTTP, "serviceType KML is translated into an HTTP Protocol"); - t.eq(context.layers[1].protocol.url, "http://foo/sundials.kml", "Url of KML file correctly set"); + t.eq(context.layers[1].protocol.url, "foo/sundials.kml", "Url of KML file correctly set"); t.ok(context.layers[1].protocol.format instanceof OpenLayers.Format.KML, "KML Format associated with protocol"); } @@ -175,7 +175,7 @@ projection: map.displayProjection, strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ - url: "http://foo/sundials.gml", + url: "foo/sundials.gml", format: new OpenLayers.Format.GML() }) }); @@ -184,7 +184,7 @@ var owc = new OpenLayers.Format.OWSContext(); var output = owc.write(map, {id: 'foo'}); - var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContextGML'; + var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContextGML'; t.xml_eq(output, expected, "OWSContext with a WMS and a GML vector layer generated correctly"); } @@ -204,7 +204,7 @@ projection: map.displayProjection, strategies: [new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ - url: "http://foo/sundials.kml", + url: "foo/sundials.kml", format: new OpenLayers.Format.KML({ extractStyles: true }) @@ -215,7 +215,7 @@ var owc = new OpenLayers.Format.OWSContext(); var output = owc.write(map, {id: 'foo'}); - var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContextKML'; + var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContextKML'; t.xml_eq(output, expected, "OWSContext with a WMS and a KML vector layer generated correctly"); }