Fixed test for GeoJSON collections (closes #1067).

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-12-16 03:09:08 +00:00
parent 35054c4a41
commit aa3536ed3a

View File

@@ -141,7 +141,7 @@
// This test is from the geom_collection example on geojson spec.
function test_Format_GeoJSON_collection(t) {
t.plan(10);
t.plan(12);
var geomcol = {
"type": "GeometryCollection",
@@ -204,7 +204,7 @@
"prop1": "value1"
}
};
data = parser.read(feature);
data = parser.read(feature, "Feature");
t.eq(data.geometry.CLASS_NAME, "OpenLayers.Geometry.Collection", "Geometry of feature is a collection");
var l = new OpenLayers.Layer.Vector();
l.addFeatures(data);