Update Project#getItems test to reflect new functionality.

This commit is contained in:
Jonathan Puckey 2014-04-27 23:06:07 +02:00
parent 320caa56d1
commit c1dda3c2a3

View file

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