8000 fix: build diff image with using "antialiasingTolerance" prop · gemini-testing/gemini@7ff6e2a · GitHub 7FFF
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

Commit 7ff6e2a

Browse files
committed
fix: build diff image with using "antialiasingTolerance" prop
1 parent 2c672df commit 7ff6e2a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎lib/state-processor/test-state-processor.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,23 @@ module.exports = class TestStateProcessor extends StateProcessor {
1717
return super.exec(state, browserSession, page)
1818
.then((result) => {
1919
if (!result.equal) {
20-
const {buildDiffOpts} = browserSession.browser.config;
21-
result = this._attachDiffBuilder(result, buildDiffOpts);
20+
const {buildDiffOpts, antialiasingTolerance} = browserSession.browser.config;
21+
result = this._attachDiffBuilder(result, {buildDiffOpts, antialiasingTolerance});
2222
}
2323

2424
emit(Events.TEST_RESULT, result);
2525
});
2626
}
2727

28-
_attachDiffBuilder(result, buildDiffOpts) {
28+
_attachDiffBuilder(result, {buildDiffOpts, antialiasingTolerance}) {
2929
return _.extend(result, {
3030
saveDiffTo: (diffPath) => Image.buildDiff({
3131
reference: result.refImg.path,
3232
current: result.currImg.path,
3333
diff: diffPath,
3434
diffColor: this._diffColor,
3535
tolerance: result.tolerance,
36+
antialiasingTolerance,
3637
...buildDiffOpts
3738
})
3839
});

0 commit comments

Comments
 (0)
0