From 018cb6285a3038cd0f2073ad8749561c3af5a7ee Mon Sep 17 00:00:00 2001 From: sapics Date: Mon, 10 Apr 2017 13:08:35 +0900 Subject: [PATCH] Add test for Path.Constructors initialization --- test/tests/Path_Constructors.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tests/Path_Constructors.js b/test/tests/Path_Constructors.js index f0324b5e..e355b12f 100644 --- a/test/tests/Path_Constructors.js +++ b/test/tests/Path_Constructors.js @@ -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); +});