From 5a702266767b3ae4af1d97728f01326ebdc17f14 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 12 Dec 2007 22:53:06 +0000 Subject: [PATCH] throw a real geometry in there for good measure git-svn-id: http://svn.openlayers.org/trunk/openlayers@5389 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/Layer/test_Vector.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Layer/test_Vector.html b/tests/Layer/test_Vector.html index d7593b560f..a13f20a15d 100644 --- a/tests/Layer/test_Vector.html +++ b/tests/Layer/test_Vector.html @@ -54,10 +54,11 @@ function test_Layer_Vector_addStyle (t) { t.plan(2); - layer = new OpenLayers.Layer.Vector(name); + var layer = new OpenLayers.Layer.Vector(name); var map = new OpenLayers.Map('map'); map.addLayer(layer); - f = new OpenLayers.Feature.Vector(); + var g = new OpenLayers.Geometry.Point(0, 0); + var f = new OpenLayers.Feature.Vector(g); t.eq( f.style, null, "Feature style is null by default."); layer.addFeatures(f); t.ok( f.style != null, "Feature style is set by layer.");