Repository navigation
test: measure the writing boxes #6803 resized by their new rule - #6851
Merged
Merged
Conversation
#6803 made every box written in one height: a field at its frame's edge takes the frame's padding (`--lf-thread-pad`) on either side of its line, and the alt+click comment box wears a one-pixel edge round that. Four tests still read the old geometry; none of them catches a change in behavior. - The compact comment box's height is now read as `--lf-line` plus twice `--lf-thread-pad` plus its edge (46px under a mouse), as `test_a_comment_box_is_the_frame_of_the_card_it_becomes` holds it. - A diff conversation's resting reply box is held to a card's reply box, `--lf-line` plus twice `--lf-thread-pad` (44px), rather than to a bare line. - The side-comment test typed lines while one more would leave the box's foot short of the window's foot (`< foot`). With the new box one more line landed exactly on the foot, so the box never needed to shift up and the test's premise failed. It now types while one more line still fits (`<= foot`), so the next line always goes past the foot. - The sent-drawing test compared the field's border-box top with the sent message's text box. The comment box's field now carries 12px of padding under a finger, so those boxes differ by 7px while the words stand at the same place (209.14px before and after Send). It now compares the first line of words: the field's top plus its padding against the sent text's first line. All four failed on main at 39ee727 and pass with this change; the side comment and drawing tests also pass on #6803's parent, so they hold the same behavior on either geometry. Closes #6849
This was referenced Nov 23, 2026
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.
#6803 made every box written in one height: a field at its frame's edge
takes the frame's padding (
--lf-thread-pad) on either side of its line,and the alt+click comment box wears a one-pixel edge round that. Four
tests still read the old geometry; none of them catches a change in
behavior.
--lf-lineplus twice--lf-thread-padplus its edge (46px under a mouse), astest_a_comment_box_is_the_frame_of_the_card_it_becomesholds it.--lf-lineplus twice--lf-thread-pad(44px), rather than to a bareline.
foot short of the window's foot (
< foot). With the new box one moreline landed exactly on the foot, so the box never needed to shift up
and the test's premise failed. It now types while one more line still
fits (
<= foot), so the next line always goes past the foot.message's text box. The comment box's field now carries 12px of padding
under a finger, so those boxes differ by 7px while the words stand at
the same place (209.14px before and after Send). It now compares the
first line of words: the field's top plus its padding against the sent
text's first line.
All four failed on main at 39ee727 and pass with this change; the side
comment and drawing tests also pass on #6803's parent, so they hold the
same behavior on either geometry.
Closes #6849 — automated triage