[OpenLayers-Commits] r3105 - trunk/openlayers/tests/Layer
commits at openlayers.org
commits at openlayers.org
Tue May 1 10:20:06 EDT 2007
Author: crschmidt
Date: 2007-05-01 10:20:03 -0400 (Tue, 01 May 2007)
New Revision: 3105
Modified:
trunk/openlayers/tests/Layer/test_Vector.html
Log:
The Vector layer tests fail in IE because there is no destroy on this fake
renderer.
Modified: trunk/openlayers/tests/Layer/test_Vector.html
===================================================================
--- trunk/openlayers/tests/Layer/test_Vector.html 2007-05-01 14:09:02 UTC (rev 3104)
+++ trunk/openlayers/tests/Layer/test_Vector.html 2007-05-01 14:20:03 UTC (rev 3105)
@@ -72,12 +72,16 @@
var feature = new OpenLayers.Feature.Vector(geometry);
var f, s;
+
+ // Layer renderer needs a destroy, and draw, for functional tests.
layer.renderer = {
drawFeature: function(feature, style) {
f = feature;
s = style;
- }
+ },
+ destroy: function() { }
};
+
layer.drawFeature(feature);
t.ok(geometry.equals(f.geometry),
More information about the Commits
mailing list