mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-30 10:04:42 +00:00
fix unit test error in google chrome
This commit is contained in:
parent
4c2dd702d3
commit
79db396d3a
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