add infoFormats to WMSCapabilities Format, r=ahocevar (closes #3539)

This commit is contained in:
Bart van den Eijnden
2011-10-10 08:24:24 +02:00
parent 760d5a584c
commit 64f111a308
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
function test_layers(t) {
t.plan(24);
t.plan(25);
var xml = document.getElementById("ogcsample").firstChild.nodeValue;
var doc = new OpenLayers.Format.XML().read(xml);
@@ -40,7 +40,7 @@
t.eq(layers["Temperature"].srs,
{"CRS:84": true},
"Inheritance of SRS handled correctly when redeclaring an inherited SRS");
t.eq(layers["Temperature"].infoFormats, ["text/xml", "text/plain", "text/html"], "infoFormats set correctly on layer");
var bbox = layers["ROADS_RIVERS"].bbox["EPSG:26986"];
t.eq(bbox.bbox,
[189000, 834000, 285000, 962000],