Remove Geometry.Surface

This commit is contained in:
fredj
2011-11-28 12:34:06 +01:00
parent 6f341b1fb5
commit dc991e6f85
12 changed files with 1 additions and 241 deletions

View File

@@ -188,7 +188,7 @@
}
function test_Elements_drawGeometry_2(t) {
t.plan(9);
t.plan(8);
setUp();
@@ -253,17 +253,6 @@
r.drawGeometry(polygon, style);
t.ok(properDraw, "drawGeometry called drawPolygon when passed a polygon");
// surface
var properDraw = false;
r.drawSurface = function(g) {
properDraw = true;
return {};
}
var surface = OpenLayers.Util.applyDefaults({CLASS_NAME: 'OpenLayers.Geometry.Surface'}, geometry);
style = true;
r.drawGeometry(surface, style);
t.ok(properDraw, "drawGeometry called drawSurface when passed a surface");
// rectangle
var properDraw = false;
r.drawRectangle = function(g) {