mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Actually ensure the length is cached at first on Curves before testing
This commit is contained in:
parent
457e96ac2b
commit
63b576b9a6
1 changed files with 1 additions and 0 deletions
|
@ -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')
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue