mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Normalize reftests
This commit is contained in:
@ -188,12 +188,14 @@ const assertPath = (result, expected, desc) => {
|
||||
case 'Repeat':
|
||||
expect(RESULT.x).to.be.closeTo(args.x, 10, `${desc} x`);
|
||||
expect(RESULT.y).to.be.closeTo(args.y, 10, `${desc} y`);
|
||||
expect(RESULT.width).to.equal(
|
||||
expect(RESULT.width).to.be.closeTo(
|
||||
args.width,
|
||||
3,
|
||||
`${desc} width`
|
||||
);
|
||||
expect(RESULT.height).to.equal(
|
||||
expect(RESULT.height).to.be.closeTo(
|
||||
args.height,
|
||||
3,
|
||||
`${desc} height`
|
||||
);
|
||||
expect(RESULT.imageSrc).to.equal(
|
||||
|
Reference in New Issue
Block a user