Repository navigation
test: keep the scrolling code blocks in two reach tests on white-space: pre - #6657
Merged
Merged
Conversation
…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
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.
Since #6629, a reading-face
<pre>wraps its long lines, so a code block scrolls sideways only where its author setswhite-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 on8faa6acf1:test_borrowed_scroll_stops_leave_code_selection_and_marks_with_their_owners[-1]:#codekept its authoredtabindex="-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-nativenever gotdata-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 onmain(7abe4c3d9), and pass on this branch.The run's 18
test_scrollers.pypin failures also began at #6629. #6654 has since repaired them: they pass on7abe4c3d9.Refs #6655 — automated triage