From 30e6835745ba75609c513363a57647c7215cfa3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 24 Oct 2015 17:42:36 +0200 Subject: [PATCH] One more test for correctly linked curves after segment insertion. Currently failing. --- test/tests/Path_Curves.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/tests/Path_Curves.js b/test/tests/Path_Curves.js index 9f06179f..a3d7263f 100644 --- a/test/tests/Path_Curves.js +++ b/test/tests/Path_Curves.js @@ -111,6 +111,10 @@ test('Curve list after removing a segment - 2', function() { equals(function() { return path.curves.length; }, 2, 'After adding a new segment at the end, we should have two curves again'); + + equals(function() { + return path.curves[1].segment1 === path.curves[0].segment2; + }, true, "The newly created curve's first segment needs to be the same as the previous curve's second segment"); }); test('Splitting a straight path should produce segments without handles', function() {