Testing backwards compatibility
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
function test_read_WMSDescribeLayer(t) {
|
function test_read_WMSDescribeLayer(t) {
|
||||||
t.plan(5);
|
t.plan(10);
|
||||||
|
|
||||||
var parser = new OpenLayers.Format.WMSDescribeLayer();
|
var parser = new OpenLayers.Format.WMSDescribeLayer();
|
||||||
|
|
||||||
@@ -32,6 +32,18 @@
|
|||||||
t.eq(res.layerDescriptions[0].layerName, "topp:states",
|
t.eq(res.layerDescriptions[0].layerName, "topp:states",
|
||||||
"Properly parses name");
|
"Properly parses name");
|
||||||
|
|
||||||
|
//TODO remove the 5 tests below when we deprecate the old structure
|
||||||
|
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");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function test_read_exception(t) {
|
function test_read_exception(t) {
|
||||||
|
|||||||
Reference in New Issue
Block a user