From 5bb5530fd719d9e532df1a6f1ac5096042017b72 Mon Sep 17 00:00:00 2001 From: Christopher Eykamp Date: Fri, 18 Jan 2013 15:58:49 +0100 Subject: [PATCH] Added tests --- tests/Format/WMSCapabilities/v1_1_1.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Format/WMSCapabilities/v1_1_1.html b/tests/Format/WMSCapabilities/v1_1_1.html index cf79a3b3f1..bd231095db 100644 --- a/tests/Format/WMSCapabilities/v1_1_1.html +++ b/tests/Format/WMSCapabilities/v1_1_1.html @@ -238,7 +238,7 @@ } function test_contactinfo(t) { - t.plan(15); + t.plan(18); var xml = document.getElementById("ogcsample").firstChild.nodeValue; var doc = new OpenLayers.Format.XML().read(xml); @@ -246,6 +246,10 @@ var obj = new OpenLayers.Format.WMSCapabilities().read(doc); 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; t.ok(contactinfo, "object contains contactInformation property");