From 2064f28d2dfd6e06f5fca5ab7ba97bdedae593c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 19 Mar 2013 18:48:19 -0700 Subject: [PATCH] Export JSON with higher precision in tests, so comparisons of bounds do not fail. --- test/tests/JSON.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tests/JSON.js b/test/tests/JSON.js index b63cabbd..7c6d85a6 100644 --- a/test/tests/JSON.js +++ b/test/tests/JSON.js @@ -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);