Simplify pull request

This commit is contained in:
Christopher Eykamp
2013-01-22 15:50:19 +01:00
parent da62be0137
commit c179c8493b
+3 -5
View File
@@ -235,10 +235,12 @@
t.eq(elevation.values, t.eq(elevation.values,
["0","1000","3000","5000","10000"], ["0","1000","3000","5000","10000"],
"Parsing of comma-separated values done correctly"); "Parsing of comma-separated values done correctly");
} }
function test_contactinfo(t) { function test_contactinfo(t) {
t.plan(18); t.plan(15);
var xml = document.getElementById("ogcsample").firstChild.nodeValue; var xml = document.getElementById("ogcsample").firstChild.nodeValue;
var doc = new OpenLayers.Format.XML().read(xml); var doc = new OpenLayers.Format.XML().read(xml);
@@ -246,10 +248,6 @@
var obj = new OpenLayers.Format.WMSCapabilities().read(doc); var obj = new OpenLayers.Format.WMSCapabilities().read(doc);
var service = obj.service; var service = obj.service;
t.eq(personPrimary.name, "OGC:WMS", "name parsed correctly");
t.eq(personPrimary.title, "Acme Corp. Map Server", "title parsed correctly");
t.eq(personPrimary.abstract, "WMT Map Server maintained by Acme Corporation. Contact: webmaster@wmt.acme.com. High-quality maps showing roadrunner nests and possible ambush locations.", "abstract parsed correctly");
var contactinfo = service.contactInformation; var contactinfo = service.contactInformation;
t.ok(contactinfo, "object contains contactInformation property"); t.ok(contactinfo, "object contains contactInformation property");