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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user