appinfo can be specified multiple times, so use an array instead thanks @ahocevar

This commit is contained in:
Bart van den Eijnden
2012-11-20 16:42:06 +01:00
parent f410cd7e41
commit cbd9a90477
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -425,7 +425,7 @@
var format = new OpenLayers.Format.WFSDescribeFeatureType();
var res = format.read(text);
var property = res.featureTypes[0].properties[0];
t.eq(property.annotation.appinfo, '{"title":{"en":"Population"}}', "appinfo read correctly");
t.eq(property.annotation.appinfo[0], '{"title":{"en":"Population"}}', "appinfo read correctly");
t.eq(property.annotation.documentation["en"], "Number of persons living in the state", "documentation read correctly");
}