reassign writers instead of creating a different geometry instance. r=bartvde (closes #3407)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12171 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-07-15 14:07:39 +00:00
parent 6714640844
commit 46a10135d9
4 changed files with 37 additions and 29 deletions
+3 -1
View File
@@ -176,7 +176,7 @@
}
function test_write_multi(t) {
t.plan(1);
t.plan(2);
var format = new OpenLayers.Format.WFST({
featureNS: "http://www.openplans.org/topp",
featureType: "states",
@@ -203,11 +203,13 @@
var features = [insertFeature, updateFeature];
var expected = readXML("TransactionMulti");
var geomTypes = OpenLayers.Util.extend({}, format.geometryTypes);
var got = format.writers["wfs"]["Transaction"].apply(format, [{
features: features,
options: {multi: true}}
]);
t.xml_eq(got, expected, "Transaction request with multi option created correctly");
t.eq(format.geometryTypes, geomTypes, "geometry types unchanged after write with multi option");
}
function readXML(id) {