mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Update Project#getItems test to reflect new functionality.
This commit is contained in:
parent
320caa56d1
commit
c1dda3c2a3
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue