From 63b576b9a6bdb7649877bf07181947404de745c5 Mon Sep 17 00:00:00 2001 From: Oliver Beattie Date: Sat, 17 Mar 2012 19:54:18 +0000 Subject: [PATCH] Actually ensure the length is cached at first on Curves before testing --- test/tests/Path_Curves.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/tests/Path_Curves.js b/test/tests/Path_Curves.js index c8e50d06..7b21d68f 100644 --- a/test/tests/Path_Curves.js +++ b/test/tests/Path_Curves.js @@ -41,6 +41,7 @@ test('path.curves Synchronisation', function() { // Transform the path, and the curves length should be invalidated (first, force-cache the first segment's length by accessing it path.curves[0].length; + ok(path.curves[0]._length, 'Curve length does not appear to be cached'); path.scale(2, [0, 0]); equals(path.curves[0].length, 200, 'Curve length should be updated when path is transformed') });