mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
parent
8461d8d9f4
commit
867d0874dc
1 changed files with 3 additions and 0 deletions
|
@ -282,6 +282,9 @@ test('Curve#isStraight()', function() {
|
|||
equals(function() {
|
||||
return new Curve([100, 100], null, [-50, -50], [100, 100]).isStraight();
|
||||
}, false);
|
||||
equals(function() { // #1269
|
||||
return new Curve([100, 300], [ 20, -20 ], [ -10, 10 ], [200, 200]).isStraight();
|
||||
}, true);
|
||||
});
|
||||
|
||||
test('Curve#isLinear()', function() {
|
||||
|
|
Loading…
Reference in a new issue