Export JSON with higher precision in tests, so comparisons of bounds do not fail.

This commit is contained in:
Jürg Lehni 2013-03-19 18:48:19 -07:00
parent 606389238d
commit 2064f28d2d

View file

@ -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);