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

View File

@@ -67,6 +67,17 @@
}
}
function test_write_poorconfig(t) {
t.plan(1);
var format = new OpenLayers.Format.WFST.v1_0_0({
featureType: "states",
featurePrefix: "topp"
});
var exp = "topp:states";
var got = format.writeNode("wfs:Query").getAttribute("typeName");
t.eq(got, exp, "Query without featureNS but with featurePrefix queries for the correct featureType");
}
var xmlFormat = new OpenLayers.Format.XML();
function readXML(id) {