mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -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');
|
'Compare Raster#size');
|
||||||
compareNumbers(item.width, item2.width, 'Compare Raster#width');
|
compareNumbers(item.width, item2.width, 'Compare Raster#width');
|
||||||
compareNumbers(item.height, item2.height, 'Compare Raster#height');
|
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');
|
equals(item.source, item2.source, 'Compare Raster#source');
|
||||||
if (checkIdentity) {
|
if (checkIdentity) {
|
||||||
equals(item.image, item2.image, 'Compare Raster#image');
|
equals(item.image, item2.image, 'Compare Raster#image');
|
||||||
|
|
Loading…
Reference in a new issue