mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Add failing test where new Segment(size) creates a Segment with Segment#point: {x: NaN, y: NaN}.
This commit is contained in:
parent
62453a4212
commit
4947a63bad
1 changed files with 5 additions and 0 deletions
|
@ -40,6 +40,11 @@ test('new Segment(x, y, inX, inY, outX, outY)', function() {
|
|||
equals(segment.toString(), '{ point: { x: 10, y: 10 }, handleIn: { x: 5, y: 5 }, handleOut: { x: 15, y: 15 } }');
|
||||
});
|
||||
|
||||
test('new Segment(size)', function() {
|
||||
var segment = new Segment(new Size(10, 10));
|
||||
equals(segment.toString(), '{ point: { x: 10, y: 10 } }');
|
||||
});
|
||||
|
||||
test('segment.reverse()', function() {
|
||||
var segment = new Segment(new Point(10, 10), new Point(5, 5), new Point(15, 15));
|
||||
segment = segment.reverse();
|
||||
|
|
Loading…
Reference in a new issue