Repository navigation
Commit c3769fd
committed
test(capture-kit): encode solid test PNGs unfiltered to stay inside the unit budget
The 375x812-vs-1080x2340 comparison spent ~0.8s of its wall clock encoding the
capture with pngjs' default scanline filters, which for a solid fill buy no
compression and only burn CPU under coverage instrumentation. On the Coverage
lane it crossed the 2x slow-test enforce line and vitest's 5s timeout (run
39928270661). filterType 0 is a lossless choice the decoder inverts, so every
compared pixel is identical.1 parent 28470ff commit c3769fd
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | | - | |
| 35 | + | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
| |||
0 commit comments