diff --git a/test/tests/Item_Order.js b/test/tests/Item_Order.js index a6c243b9..9fdec965 100644 --- a/test/tests/Item_Order.js +++ b/test/tests/Item_Order.js @@ -57,7 +57,7 @@ test('Item Order', function() { test('Item#moveAbove(item) / Item#moveBelow(item)', function() { var item0, item1, item2; var testMove = function(command, indexes) { - paper.project.activeLayer.remove(); + paper.project.clear(); new Layer(); item0 = new Group(); item1 = new Group(); diff --git a/test/tests/JSON.js b/test/tests/JSON.js index 525ea917..d810c5ff 100644 --- a/test/tests/JSON.js +++ b/test/tests/JSON.js @@ -16,7 +16,7 @@ function testExportImportJson(project) { // Use higher precision than in comparissons, for bounds var json = project.exportJson({ precision: 8 }); var project2 = new Project(); - project2.activeLayer.remove(); + project2.clear(); project2.importJson(json); compareProjects(project2, project); }