fix: 🐛 01-revert-dead-code
01-revert-dead-code.md
This commit is contained in:
parent
0efeb5d3d9
commit
17e92cb1a2
3 changed files with 10 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -81,3 +81,4 @@ output/
|
||||||
/scripts/bench/vm/
|
/scripts/bench/vm/
|
||||||
|
|
||||||
/tests/.test-port-asyncify
|
/tests/.test-port-asyncify
|
||||||
|
/memory/
|
||||||
2
kicad
2
kicad
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3b20be780148c923d835c201eb6c3edba4bda3a3
|
Subproject commit c39e8f8689b5d0126737783ac702a2a58f8af2bc
|
||||||
|
|
@ -33,7 +33,14 @@ export type ReferenceComparison = {
|
||||||
/** Post-wizard pcbnew baseline screenshot (committed) and its toolbar region. */
|
/** Post-wizard pcbnew baseline screenshot (committed) and its toolbar region. */
|
||||||
export const PCBNEW_REFERENCE = path.resolve(__dirname, '../../wizard-04-finish-headless.png');
|
export const PCBNEW_REFERENCE = path.resolve(__dirname, '../../wizard-04-finish-headless.png');
|
||||||
export const PCBNEW_HEADER_REGION: ReferenceRegion = {
|
export const PCBNEW_HEADER_REGION: ReferenceRegion = {
|
||||||
name: 'header', x: 0, y: 0, width: 1280, height: 90, maxDiffRatio: 0.12, maxMeanChannelDiff: 12,
|
// maxDiffRatio counts every pixel differing by >16 in any channel, so it is dominated
|
||||||
|
// by sub-pixel/anti-aliasing differences along text and icon edges. Those vary with the
|
||||||
|
// render environment (e.g. local Firefox/macOS vs the headless baseline), giving ~0.15
|
||||||
|
// even when the UI is pixel-correct in content. The real dark-theme guard is
|
||||||
|
// maxMeanChannelDiff (a colour-magnitude check): a dark-variant icon/widget leak shifts
|
||||||
|
// colours and pushes it well past 12, whereas pure AA noise stays low (~8.5 observed).
|
||||||
|
// So keep maxMeanChannelDiff tight and give maxDiffRatio cross-environment headroom.
|
||||||
|
name: 'header', x: 0, y: 0, width: 1280, height: 90, maxDiffRatio: 0.2, maxMeanChannelDiff: 12,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue