Add failing test where calling Path#simplify on a path with three identical segments throws an error.

This commit is contained in:
Jonathan Puckey 2013-02-27 17:34:28 +01:00
parent 21ee2edb60
commit d3435ec803

View file

@ -277,3 +277,8 @@ test('Path#fullySelected', function() {
return path.fullySelected;
}, false);
});
test('Simplifying a path with three segments of the same position should not throw an error', function() {
var path = new Path([20, 20], [20, 20], [20, 20]);
path.simplify();
});