Repository navigation
test: give two comment-box tests room for #7442's taller frame on macOS - #7539
Merged
Merged
Conversation
#7442 made the comment box's frame 33px taller. Two anchors tests then failed 8 of 8 copies on the macOS runner at bfd1b7b, and 0 of 8 at its parent; on Linux they kept passing because Linux's fonts wrap the pages' lines differently. - test_a_comment_box_follows_its_passage_and_resume_returns_the_writer: past its passage's foot the box leaves with the passage, its own foot hanging below it (placement rule scroll-held-in). In a 500px window the page cannot scroll far enough on macOS to take that foot out of the window. A 400px window gives the scroll room, and the test keeps asserting that the box has left. - test_the_comment_button_stands_on_no_control: the box opens under its passage over whatever stands there. On macOS the board card's grip stood in that room. A paragraph before the board keeps the board's controls out of it, and the test keeps checking every control's corners. Refs #7532
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.
Two
test_render_anchorstests have failed on every macOS copy since #7442 made the comment box's frame 33px taller. On Linux they still pass only because Linux's fonts wrap these pages' lines differently. This PR changes only the tests' arrangements, so #7442's intent and the placement rules stay as they are:test_a_comment_box_follows_its_passage_and_resume_returns_the_writer: once its passage's foot passes the window's top, the box leaves with the passage, and its own foot hangs 77px below it (scroll-held-ininplacement-rules.json). In a 1280×500 window the page can't scroll far enough on macOS to take that foot out of view. The box ended aty: -150.5with height 167, so its foot showed 16px into the window. On Linux it cleared by 2.5px. A 400px window gives the page room to scroll the box fully away. The test still asserts the box has left and that Resume (g i) brings it back focused with its words.test_the_comment_button_stands_on_no_control: the box opens under its passage over whatever stands there, and placement no longer moves it past controls. On macOS the second paragraph fits on one line, so the board card's grip sat under the field. On Linux that paragraph wraps and the board stands 27px lower. A paragraph before the board keeps the board's controls out of the field's room on either platform. The test still hit-tests every control's corners and centre, then makes the press.Verification on the macOS runner (
flakedispatches ofci):bfd1b7b75^(#7442's parent), 46169803397bfd1b7b75(#7442), 461698056746313a6f59, 46168668757Both also pass on Linux.
#7532's other four tests are untouched here: the Go-to menu hint, the two teardown shifts and the motion float comparison. That issue carries their diagnosis.
Refs #7532 — automated triage