making Protocol.WFS work with just featureType and featurePrefix configured. r=bartvde (closes #3368)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-06-29 09:53:37 +00:00
parent 058008864e
commit eb7cc04254
12 changed files with 148 additions and 12 deletions
+13
View File
@@ -50,6 +50,19 @@
}
function test_read_setGeometryName(t) {
t.plan(1);
var doc = readXML("v3/topp-states-gml.xml");
var format = new OpenLayers.Format.GML.v3({
featureType: "states",
featureNS: "http://www.openplans.org/topp",
geometryName: null
});
var features = format.read(doc.documentElement);
t.eq(format.geometryName, "the_geom", "geometryName set when parsing features");
}
function test_readNode_bounds(t) {
var files = ["v3/envelope.xml"];