mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 10:48:38 -05:00
Export JSON with higher precision in tests, so comparisons of bounds do not fail.
This commit is contained in:
parent
606389238d
commit
2064f28d2d
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@
|
|||
module('JSON');
|
||||
|
||||
function testExportImportJson(project) {
|
||||
var json = project.exportJson();
|
||||
// Use higher precision than in comparissons, for bounds
|
||||
var json = project.exportJson({ precision: 8 });
|
||||
var project2 = new Project();
|
||||
project2.activeLayer.remove();
|
||||
project2.importJson(json);
|
||||
|
|
Loading…
Reference in a new issue