mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-01 05:38:45 +00:00
chore(core/tests): add green to UI diff
[no changelog]
This commit is contained in:
parent
b07ed98ba4
commit
9b29cd2027
@ -213,7 +213,7 @@ function createRowDiff(row) {
|
|||||||
|
|
||||||
// Process differences
|
// Process differences
|
||||||
const difData = difCtx.createImageData(width, height);
|
const difData = difCtx.createImageData(width, height);
|
||||||
options = {threshold: 0.0, includeAA: true};
|
options = {threshold: 0.0, includeAA: true, diffColorAlt: [0, 255, 0]};
|
||||||
pixelmatch(recData.data, curData.data, difData.data, width, height, options);
|
pixelmatch(recData.data, curData.data, difData.data, width, height, options);
|
||||||
difCtx.putImageData(difData, 0, 0);
|
difCtx.putImageData(difData, 0, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user