mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 01:12:39 -05:00
Add test for Path.Constructors initialization
This commit is contained in:
parent
08b9dcecb8
commit
018cb6285a
1 changed files with 5 additions and 0 deletions
|
@ -130,3 +130,8 @@ test('new Path.Line({ from: from, to: to })', function() {
|
|||
});
|
||||
equals(path.segments.toString(), '{ point: { x: 20, y: 20 } },{ point: { x: 40, y: 40 } }');
|
||||
});
|
||||
|
||||
test('new Path.Line({insert: false, from:[50, 50], to:[100, 100]})', function() {
|
||||
var path = new Path.Line({insert: false, from:[50, 50], to:[100, 100]});
|
||||
equals(path.insert === false, false);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue