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 @@
' ' +
' GNIS Population' +
' ' +
- ' ' +
+ ' ' +
' ' +
' ' +
' ' +
@@ -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 OWSContextOpenLayers WMSimage/jpegmyroads';
+ var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContextOpenLayers WMSimage/jpegmyroads';
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 examplesOpenLayers WMSimage/jpegBoston Landuse Polygons50005000099';
+ var text = '-117.44667178362664 32.57086210449395-116.74066794885977 32.921986352104064OWS Context version 0.3.0 examplesOpenLayers WMSimage/jpegBoston 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 OWSContextOpenLayers WMSimage/jpegKML';
+ var text = '-5.986328125 27.915039062515.986328125 52.0849609375OpenLayers OWSContextOpenLayers WMSimage/jpegKML';
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 OWSContextOpenLayers WMSimage/jpegGML';
+ var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContextOpenLayers WMSimage/jpegGML';
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 OWSContextOpenLayers WMSimage/jpegKML';
+ var expected = '-5.986328125 29.01367187515.986328125 50.986328125OpenLayers OWSContextOpenLayers WMSimage/jpegKML';
t.xml_eq(output, expected, "OWSContext with a WMS and a KML vector layer generated correctly");
}