documentation is also an array, and lang is optional thanks @ahocevar for the catch

This commit is contained in:
Bart van den Eijnden
2012-11-20 16:48:50 +01:00
parent cbd9a90477
commit 52d69ecfda
2 changed files with 6 additions and 4 deletions

View File

@@ -426,7 +426,7 @@
var res = format.read(text);
var property = res.featureTypes[0].properties[0];
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");
t.eq(property.annotation.documentation[0], {lang: "en", textContent: 'Number of persons living in the state'}, "documentation read correctly");
}
</script>