From aa3536ed3a2f2777f4d5bd59f0b9716eef966974 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 16 Dec 2007 03:09:08 +0000 Subject: [PATCH] Fixed test for GeoJSON collections (closes #1067). git-svn-id: http://svn.openlayers.org/trunk/openlayers@5437 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Format/test_GeoJSON.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Format/test_GeoJSON.html b/tests/Format/test_GeoJSON.html index 0fc8837e09..8b05fb2e9c 100644 --- a/tests/Format/test_GeoJSON.html +++ b/tests/Format/test_GeoJSON.html @@ -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);