From cdd9f8ba5f6fdfa77e61ed228f204a0498c4bd61 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 22 Nov 2013 11:16:08 -0800 Subject: [PATCH] Fix SVG parse errors in specs (fixes #2012) --- test/spec/svg/areas.js | 2 +- test/spec/svg/lines.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/spec/svg/areas.js b/test/spec/svg/areas.js index 178f42810..b0d95c59f 100644 --- a/test/spec/svg/areas.js +++ b/test/spec/svg/areas.js @@ -1,6 +1,6 @@ describe("iD.svg.Areas", function () { var surface, - projection = d3.geo.projection(function(x) { return x; }) + projection = d3.geo.projection(function(x, y) { return [x, y]; }) .clipExtent([[0, 0], [Infinity, Infinity]]), all = d3.functor(true), none = d3.functor(false); diff --git a/test/spec/svg/lines.js b/test/spec/svg/lines.js index 8f5e82dc5..21ba6981d 100644 --- a/test/spec/svg/lines.js +++ b/test/spec/svg/lines.js @@ -1,6 +1,6 @@ describe("iD.svg.Lines", function () { var surface, - projection = d3.geo.projection(function(x) { return x; }) + projection = d3.geo.projection(function(x, y) { return [x, y]; }) .clipExtent([[0, 0], [Infinity, Infinity]]), filter = d3.functor(true);