Add test for Path.Constructors initialization

This commit is contained in:
sapics 2017-04-10 13:08:35 +09:00
parent 08b9dcecb8
commit 018cb6285a

View file

@ -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);
});