mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix comparing of Raster#ppi in compareItems test helper.
This commit is contained in:
parent
a87c9e9a7f
commit
b22dc173ed
1 changed files with 4 additions and 1 deletions
|
@ -338,7 +338,10 @@ function compareItems(item, item2, cloned, checkIdentity, dontShareProject) {
|
|||
'Compare Raster#size');
|
||||
compareNumbers(item.width, item2.width, 'Compare Raster#width');
|
||||
compareNumbers(item.height, item2.height, 'Compare Raster#height');
|
||||
compareNumbers(item.ppi, item2.ppi, 'Compare Raster#ppi');
|
||||
|
||||
equals(item.ppi.toString(), item2.ppi.toString(),
|
||||
'Compare Raster#ppi');
|
||||
|
||||
equals(item.source, item2.source, 'Compare Raster#source');
|
||||
if (checkIdentity) {
|
||||
equals(item.image, item2.image, 'Compare Raster#image');
|
||||
|
|
Loading…
Reference in a new issue