Sha256: 66b485c74742dd52bffcbd518b102ababd459a862ab0379c0db1f82cdf404cdb

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

<html> 
<head> 
    <script src="../OLLoader.js"></script>
    <script type="text/javascript">
    
    function test_read_WMSDescribeLayer(t) {
        t.plan(5);
       
        var parser = new OpenLayers.Format.WMSDescribeLayer();

        var text =
            '<WMS_DescribeLayerResponse version="1.1.1">' +
            '  <LayerDescription name="topp:states" wfs="http://geo.openplans.org:80/geoserver/wfs/WfsDispatcher?">' +
            '    <Query typeName="topp:states"/>' +
            '  </LayerDescription>' +
            '</WMS_DescribeLayerResponse>';

        var res = parser.read(text);

        t.eq(res.length, 1,
            "Only one LayerDescription in data, so only one parsed");

        t.eq(res[0].owsType, "WFS",
            "Properly parses owsType as WFS");

        t.eq(res[0].owsURL, "http://geo.openplans.org:80/geoserver/wfs/WfsDispatcher?",
            "Properly parses owsURL");

        t.eq(res[0].typeName, "topp:states",
            "Properly parses typeName");

        t.eq(res[0].layerName, "topp:states",
            "Properly parses name");

    }

    </script> 
</head> 
<body>
</body> 
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gb_mapfish_appserver-0.0.5 vendor/assets/javascripts/openlayers/tests/Format/WMSDescribeLayer.html
gb_mapfish_appserver-0.0.4 vendor/assets/javascripts/openlayers/tests/Format/WMSDescribeLayer.html
gb_mapfish_appserver-0.0.3 vendor/assets/javascripts/openlayers/tests/Format/WMSDescribeLayer.html
gb_mapfish_appserver-0.0.2 vendor/assets/javascripts/openlayers/tests/Format/WMSDescribeLayer.html
gb_mapfish_appserver-0.0.1 vendor/assets/javascripts/openlayers/tests/Format/WMSDescribeLayer.html