From 438df42b7c3936186ecfa5ad82729cb9cb302638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 26 Apr 2011 12:34:27 +0100 Subject: [PATCH] Update Path Length tests. --- test/tests/Path_Length.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/tests/Path_Length.js b/test/tests/Path_Length.js index 115c6139..4a671402 100644 --- a/test/tests/Path_Length.js +++ b/test/tests/Path_Length.js @@ -18,11 +18,14 @@ test('path.length', function() { // 5: 172.1100076851322 compareNumbers(length, 172.10122680664062); + var curve = path.curves[0]; var t = Date.now(), c = 1000; for (var i = 0; i < c; i++) { - var param = path.curves[0].getParameter(length / 4); + var param = curve.getParameter(length / 4); } window.console.log(Date.now() - t, param); + + var param = curve.getParameter(length / 4); // ai: 0.2255849553116685 // 8: 0.22558507711602457 // 5: 0.22558507714028128