From c1dda3c2a38757093217e6ce7fada81394574d5f Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 27 Apr 2014 23:06:07 +0200 Subject: [PATCH] Update Project#getItems test to reflect new functionality. --- test/tests/Item_Getting.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/tests/Item_Getting.js b/test/tests/Item_Getting.js index e5f09e98..01596890 100644 --- a/test/tests/Item_Getting.js +++ b/test/tests/Item_Getting.js @@ -145,10 +145,8 @@ test('Project#getItems() with specific property value', function() { }); test('Project#getItems() with color', function() { - var red = new Color('red'); - var path = new Path({ - fillColor: red + fillColor: 'red' }); var decoyPath = new Path({ @@ -157,7 +155,7 @@ test('Project#getItems() with color', function() { equals(function() { var items = paper.project.getItems({ - fillColor: new Color('red'), + fillColor: 'red', type: 'path' }); return items.length == 1 && items[0] == path;