]> dev.renevier.net Git - syp.git/blob - openlayers/tests/Format/WMSDescribeLayer.html
add some margin around image
[syp.git] / openlayers / tests / Format / WMSDescribeLayer.html
1 <html> 
2 <head> 
3     <script src="../../lib/OpenLayers.js"></script>
4     <script type="text/javascript">
5     
6     function test_read_WMSDescribeLayer(t) {
7         t.plan(4);
8        
9         var parser = new OpenLayers.Format.WMSDescribeLayer();
10
11         var text =
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>';
17
18         var res = parser.read(text);
19
20         t.eq(res.length, 1,
21             "Only one LayerDescription in data, so only one parsed");
22
23         t.eq(res[0].owsType, "WFS",
24             "Properly parses owsType as WFS");
25
26         t.eq(res[0].owsURL, "http://geo.openplans.org:80/geoserver/wfs/WfsDispatcher?",
27             "Properly parses owsURL");
28
29         t.eq(res[0].typeName, "topp:states",
30             "Properly parses typeName");
31
32     }
33
34     </script> 
35 </head> 
36 <body>
37 </body> 
38 </html>