mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Adjust Path Length tests tolerance so they don't fail.
This commit is contained in:
parent
e6fa0085b6
commit
dbec03432d
1 changed files with 2 additions and 2 deletions
|
@ -19,10 +19,10 @@ test('path.length', function() {
|
|||
]);
|
||||
|
||||
var length = path.length;
|
||||
compareNumbers(length, 172.10122680664062, 'path.length', 4);
|
||||
compareNumbers(length, 172.10122680664062, 'path.length', 3);
|
||||
|
||||
var param = path.curves[0].getParameterAt(length / 4);
|
||||
compareNumbers(param, 0.2255849553116685, 'path.curves[0].getParameterAt(length / 4)', 4);
|
||||
compareNumbers(param, 0.2255849553116685, 'path.curves[0].getParameterAt(length / 4)', 3);
|
||||
});
|
||||
|
||||
test('curve.getParameter with straight curve', function() {
|
||||
|
|
Loading…
Reference in a new issue