fixing href regression introduced with r11978. r=bartvde (see #3351)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
function test_read(t) {
|
||||
|
||||
t.plan(17);
|
||||
t.plan(23);
|
||||
|
||||
var xml = document.getElementById("gssample").firstChild.nodeValue;
|
||||
var doc = new OpenLayers.Format.XML().read(xml);
|
||||
@@ -32,6 +32,40 @@
|
||||
undefined,
|
||||
"getmap.post not available"
|
||||
);
|
||||
|
||||
var describelayer = capability.request.describelayer;
|
||||
t.eq(
|
||||
describelayer.href,
|
||||
"http://publicus.opengeo.org:80/geoserver/wms?SERVICE=WMS&",
|
||||
"describelayer href parsed"
|
||||
);
|
||||
t.eq(
|
||||
describelayer.get.href,
|
||||
describelayer.href,
|
||||
"describelayer.get.href parsed"
|
||||
);
|
||||
t.eq(
|
||||
describelayer.post,
|
||||
undefined,
|
||||
"describelayer.post not available"
|
||||
);
|
||||
|
||||
var getfeatureinfo = capability.request.getfeatureinfo;
|
||||
t.eq(
|
||||
getfeatureinfo.href,
|
||||
"http://publicus.opengeo.org:80/geoserver/wms?SERVICE=WMS&",
|
||||
"getfeatureinfo href parsed"
|
||||
);
|
||||
t.eq(
|
||||
getfeatureinfo.get.href,
|
||||
getfeatureinfo.href,
|
||||
"getmap.get.href parsed"
|
||||
);
|
||||
t.eq(
|
||||
getfeatureinfo.post.href,
|
||||
"http://publicus.opengeo.org:80/geoserver/wms?SERVICE=WMS&",
|
||||
"getfeatureinfo.post set correctly"
|
||||
);
|
||||
|
||||
t.ok(capability.layers, "layers parsed");
|
||||
t.eq(capability.layers.length, 22, "correct number of layers parsed");
|
||||
|
||||
Reference in New Issue
Block a user