From 86e77e12bcb5b96ec14de2b69a1a007c2d24bc52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 23 Apr 2013 07:11:23 -0700 Subject: [PATCH] Use new Project#clear() instead of activeLayer.remove(). --- test/tests/Item_Order.js | 2 +- test/tests/JSON.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }