mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Add failing test where calling Path#simplify on a path with three identical segments throws an error.
This commit is contained in:
parent
21ee2edb60
commit
d3435ec803
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue