Changeset 9570
- Timestamp:
- 07/20/09 12:18:02 (14 months ago)
- Location:
- trunk/openlayers
- Files:
-
- 2 modified
-
lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js (modified) (2 diffs)
-
tests/Format/WMSDescribeLayer.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/openlayers/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js
r9146 r9570 60 60 nodeName = childNode.nodeName; 61 61 if (nodeName == 'LayerDescription') { 62 var layerName = childNode.getAttribute('name'); 62 63 var owsType = ''; 63 64 var owsURL = ''; … … 86 87 } 87 88 } 88 describelayer.push({owsType: owsType, owsURL: owsURL, typeName: typeName}); 89 describelayer.push({layerName: layerName, owsType: owsType, 90 owsURL: owsURL, typeName: typeName}); 89 91 } 90 92 } -
trunk/openlayers/tests/Format/WMSDescribeLayer.html
r9222 r9570 5 5 6 6 function test_read_WMSDescribeLayer(t) { 7 t.plan( 4);7 t.plan(5); 8 8 9 9 var parser = new OpenLayers.Format.WMSDescribeLayer(); … … 30 30 "Properly parses typeName"); 31 31 32 t.eq(res[0].layerName, "topp:states", 33 "Properly parses name"); 34 32 35 } 33 36
