Skip to content

test: keep the scrolling code blocks in two reach tests on white-space: pre - #6657

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-6655-wrap-fixtures
Nov 21, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-6655-wrap-fixtures

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Since #6629, a reading-face <pre> wraps its long lines, so a code block scrolls sideways only where its author sets white-space: pre. #6629 gave its scrolling-code fixtures that style but missed two in reach tests. Those blocks now wrap, so Leaf lends them no Tab stop, and both tests failed in push run 44879949277 on 8faa6acf1:

  • test_borrowed_scroll_stops_leave_code_selection_and_marks_with_their_owners[-1]: #code kept its authored tabindex="-1".
  • test_a_scrolling_box_takes_a_stop_unless_tab_reaches_a_control_in_it, subtest "scroll surfaces added after upgrade gain keyboard reach": #late-native never got data-lf-more-after.

Both fixtures now set white-space: pre, so the tests again check the keyboard reach of a code block that scrolls. Product code is unchanged.

Verification: both pass on #6629's parent (028644a4f). They fail at #6629 (eddb052c7) and on main (7abe4c3d9), and pass on this branch.

The run's 18 test_scrollers.py pin failures also began at #6629. #6654 has since repaired them: they pass on 7abe4c3d9.

Refs #6655 — automated triage

…e: pre

Since #6629 a reading-face <pre> wraps its long lines, so a code block
scrolls sideways only where its author sets `white-space: pre`. #6629
gave its scrolling-code fixtures that style, but missed two:
`test_borrowed_scroll_stops_leave_code_selection_and_marks_with_their_owners[-1]`
and the "scroll surfaces added after upgrade gain keyboard reach" subtest
of `test_a_scrolling_box_takes_a_stop_unless_tab_reaches_a_control_in_it`.
Their blocks wrapped, took no lent Tab stop, and the tests failed on
main. Both now set `white-space: pre` and again check the keyboard reach
of a block that scrolls. No product behavior changes.

Refs #6655
@leaf-agent
leaf-agent merged commit f12bab6 into main Nov 21, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-6655-wrap-fixtures branch November 21, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant