Commit dcf90b4
test: re-enable four tests skipped during past tooling migrations
Four tests were skipped over the years, each during a test-harness or
build migration rather than for a genuine feature failure. A skipped
test is green in CI, so none produced a signal and all silently
rotted. Re-enable them.
testLabelmapOutlineManyRenderer
Skipped 2022-03-11 in commit 50ace42 (PR #2308, "Make test
harnesses the same for release and PRs"); the commit gave no
reason. While skipped the code rotted: createLabelPipeline called
backgroundImageData.getDimensionsByReference(), which is not a
function on vtkImageData. Use getDimensions(). Passes against the
existing baseline, so no baseline change.
testEdgeVisibility
Skipped 2021-11-12 in commit 13b9be1 (PR #2161, "Update test
framework"), flagged in a pixelmatch-threshold-0 audit (PR #2098,
closed unmerged) as a "bad image test" (issue #2104). The 2017
baseline predates commit a8873e5 (2021-02-19,
"feat(vtkopenglpolydatamapper): add support for backface
property"), which changed the edge draw path from lit
(ambient = getAmbient(), diffuse = getDiffuse()) to flat
(ambient = 1.0, diffuse = 0.0): edges now render at the full
configured edge color, the intended behavior. The render has been
stable since at least 2021-06 (a steady 1.80% from the 2017
baseline at 2021-06, 2022, and 2024). Refresh the baseline; the
tolerance is unchanged at 1% (chromium ~0%, firefox passes).
testAverageIntensityProjection
Skipped 2021-11-12 in commit 13b9be1 (PR #2161), tracked by
issue #2102. It did not drift or regress. Before the 2021
test-framework work the test was effectively a no-op: the old
compareImages passed its threshold argument (here 1.5) straight to
pixelmatch, whose threshold range is 0 to 1, so pixelmatch reported
zero differing pixels for any image and the test passed vacuously.
The pixelmatch-threshold-0 audit (PR #2098, closed unmerged)
exposed the real comparison, and the test then "failed" because its
baseline had never actually been checked.
The committed baseline is the original 2019 image from aae2f55;
commit 8a50448 only renamed it OpenGL/ to Core/ (100% rename).
It is a near-blank volume the real render never matched. Rendering
against old Sources shows a stable, correct head volume back to
2021-06 (~1.5% from the corrected baseline, ~0% on current master).
Replace the baseline with the actual render (chromium ~0%, firefox
0.01%, within the 1% tolerance) and re-enable the test. Also
release resources via .finally; gc.releaseResources had been passed
as an unused 5th argument to compareImages.
testSetTable
Skipped 2026-05-21 by the Vite/Vitest migration (c0d9887),
which rewrote test.onlyIfWebGL(...) as it.skip(...) instead of the
it.skipIf(__VTK_TEST_NO_WEBGL__)(...) form used for every other
migrated WebGL test, silently disabling a passing test. Restore the
intended WebGL-conditional skip.
Closes #21021 parent 3659cda commit dcf90b4
6 files changed
Lines changed: 247 additions & 239 deletions
File tree
- Sources
- Common/Core/LookupTable/test
- Rendering
- Core
- Mapper/test
- VolumeMapper/test
- OpenGL/VolumeMapper/test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 89 additions & 84 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
0 commit comments