Repository navigation
test: expect the contents spine's 7px section markers that #6113 chose - #6184
Merged
Merged
Conversation
#6113 widened a section's marker on the contents spine from 6px to 7px so every marker is an odd number of pixels across and centres on the 1px spine. The contents-spine journey still expected 6px, and has failed since. It now expects 7px; the behavior it protects, each marker's size and centring on the spine, is unchanged. Closes #6175
leaf-agent
commented
Nov 16, 2026
leaf-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
The header of packages/default/styles/toc.css still says "The title and top-level sections use 9px and 6px rings", but #6113 widened the top-level marker to 7px (lf-toc li[data-lf-depth="0"]::before { --lf-toc-dot: 7px; }), the width this test now expects. The header records the module's product decisions, so a reader trusting it would put back the even width that stands off the spine. I'll push a one-line fix to the header so it says 7px.
leaf-agent
added a commit
that referenced
this pull request
Nov 16, 2026
… last frame (#6194) `test_a_display_widget_draws_on_a_page_without_leaf` failed on #6184's CI ([run 43915527596](https://github.com/max-sixty/leaf/actions/runs/43915527596)) with `assert 299.5 == 300`. #6184 didn't cause it: it changed only a CSS comment and a journey's expected widths. The cause is in the test. `lf-motion`'s clock shows `Math.round(time)`, so it already reads "300 ms" when the clock stands at 299.5 ms, one frame before playback ends. The test waited on that text and then read the last drawn frame. It now waits for the transport's button to say Play again, which `#tick` does when it pauses at the duration, in the same task that draws the final frame. The assertions themselves are unchanged, and so is the widget. Verified locally: the test passes alone, and five more times with six busy loops starving the 4-core runner of CPU. The failure needs a frame to land within half a millisecond of the end, so it didn't reproduce before the change either; the evidence for the cause is the CI failure together with the rounding in `packages/motion/widgets/motion-view.js`. Co-authored-by: leaf-agent <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#6113 deliberately widened a section's marker on the contents map's spine from 6px to 7px, so every marker is an odd number of pixels across and centres on the 1px spine instead of standing half a pixel off it.
test_a_contents_spine_maps_the_document_until_the_user_enters_it, a nightly journey that #6113's own CI didn't run, still expected 6px and has failed since. This updates its expected widths to 7px; its other assertions, including that every marker centres on the spine, are unchanged. It also corrects thetoc.cssheader, which still described the top-level markers as 6px rings. Nothing on screen changes beyond what #6113 already shipped.Run by node id, the journey fails on main with
['9px', '7px', '3px', '3px', '7px', '7px', '7px'] == ['9px', '6px', ...]and passes with this change.Closes #6175 — automated triage