mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-08 13:54:43 +00:00
Merge pull request #2227 from sapics/fix-unit-test
fix unit test error in google chrome
This commit is contained in:
commit
697d17bd70
1 changed files with 2 additions and 2 deletions
|
|
@ -349,14 +349,14 @@
|
|||
cObj.set('height', 167).setCoords();
|
||||
boundingRect = cObj.getBoundingRect();
|
||||
equal(boundingRect.left, 0);
|
||||
equal(boundingRect.top, 0);
|
||||
equal(Math.abs(boundingRect.top).toFixed(13), 0);
|
||||
equal(boundingRect.width, 123);
|
||||
equal(boundingRect.height, 167);
|
||||
|
||||
cObj.scale(2).setCoords();
|
||||
boundingRect = cObj.getBoundingRect();
|
||||
equal(boundingRect.left, 0);
|
||||
equal(boundingRect.top, 0);
|
||||
equal(Math.abs(boundingRect.top).toFixed(13), 0);
|
||||
equal(boundingRect.width, 246);
|
||||
equal(boundingRect.height, 334);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue