An independent review of 9cc237f rejected its verification claim: the commit said 18 checks executed the shipped noteSample, triple, acceptTriple, resetWindows and newEngineRun, and the tree contained none of them. The harness was real and passing, but it lived in /tmp, so nobody else could re-run it and the claim was unfalsifiable from the repository. That is a fair rejection regardless of whether the checks were right -- a verification nobody can repeat is a claim about the author's machine. Move both harnesses into tests/js/ and add the extractor they need. The page is one C++ raw string, so a JS test has to pull the script out of the translation unit it ships in; page.js does that, and each test slices the functions it exercises by line range and CALLS them. Both details matter: a retyped copy tests the copy, and a sliced function that is defined but never invoked passes without testing anything, which has already happened once in this code. extremes.test.js, 17 checks: the age clause appears only when an extreme stands alone and is at least a second old, tracks the newest extreme rather than the first, survives a gap with its age, and is gone after a restart along with the extreme itself. poll_spark.test.js, 35 checks: the clamp's floor, ceiling and fallbacks, the in-flight trigger, the old storage key migrating to a flat rate, corrupt storage falling back, the summary label matching what is set, the sparkline's x axis being time-proportional rather than sample index, the right-edge fill at startup, a sample gap drawn as a gap in the line, and the prune loop keeping samples by elapsed time rather than by count. The window expectations derive from the shipped HIST_S, so changing the constant moves them instead of silently passing. Verified: both pass, and both fail when the code is wrong -- setting the age gate to zero fails extremes.test.js, and returning the sparkline to index spacing fails four checks in poll_spark.test.js. dashboard.cpp is unchanged by this commit and dashboard_test still reports 241 checks over 8 cases. Not wired into ctest: they need node, which is not a build dependency here and will not be on a contributor's box or in the ROCm build image. Making a missing optional tool a red build is worse than an opt-in test, so the README says how to run them and when to bother. Found by an independent review pass on the author's own commits. Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
Dashboard page tests
The dashboard is one C++ string: core/server/dashboard.cpp embeds the whole page,
so its JavaScript has no file of its own to test. These harnesses extract the page
from the translation unit (page.js) and execute the shipped functions, sliced
by line range, against mocked DOM. A retyped copy would test the copy, not the bytes
that ship — and a sliced function that is defined but never called proves nothing,
which has already happened once here.
node tests/js/poll_spark.test.js
node tests/js/extremes.test.js
Why these are not in ctest
They need node, which is not a build dependency of this project and will not be
present on a contributor's box or in the ROCm build image. Wiring them into ctest
would turn a missing optional tool into a red build, so they stay opt-in and are run
by hand when the page changes. dashboard_test covers the C++ side only.
History
Both files came out of the 2026-11-01 dashboard review. Commit 9cc237f claimed
"18 checks execute the shipped noteSample, triple, acceptTriple, resetWindows and
newEngineRun" while the harness lived only in /tmp — true when written, not
reproducible by anyone else, which an independent review correctly rejected. They are
in the tree so that claim can be re-run.