3 <script src="../../lib/OpenLayers.js"></script>
4 <script type="text/javascript">
6 function test_read_WMSDescribeLayer(t) {
9 var parser = new OpenLayers.Format.WMSDescribeLayer();
12 '<WMS_DescribeLayerResponse version="1.1.1">' +
13 ' <LayerDescription name="topp:states" wfs="http://geo.openplans.org:80/geoserver/wfs/WfsDispatcher?">' +
14 ' <Query typeName="topp:states"/>' +
15 ' </LayerDescription>' +
16 '</WMS_DescribeLayerResponse>';
18 var res = parser.read(text);
21 "Only one LayerDescription in data, so only one parsed");
23 t.eq(res[0].owsType, "WFS",
24 "Properly parses owsType as WFS");
26 t.eq(res[0].owsURL, "http://geo.openplans.org:80/geoserver/wfs/WfsDispatcher?",
27 "Properly parses owsURL");
29 t.eq(res[0].typeName, "topp:states",
30 "Properly parses typeName");