Skip to content

Commit 16d1e44

Browse files
committed
fix drawtool spec on ie
1 parent ce70f83 commit 16d1e44

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/map/tools/DrawToolSpec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ describe('DrawTool', function () {
227227
expect(param.geometry instanceof maptalks.Polygon).to.be.ok();
228228
var coordinates = param.geometry.getCoordinates()[0];
229229
expect(coordinates.length === 5).to.be.ok();
230-
expect(coordinates[1].toArray()).to.be.eql([118.84675603637106, 32.046603663660306 ]);
230+
if (!maptalks.Browser.ie) {
231+
expect(coordinates[1].toArray()).to.be.eql([118.84675603637106, 32.046603663660306]);
232+
}
231233
done();
232234
}
233235
var drawTool = new maptalks.DrawTool({

0 commit comments

Comments
 (0)