Repository navigation
test: wait for the page search's marks to repaint before reading them - #5951
Merged
Merged
Conversation
…locks test_a_search_match_across_blocks_marks_and_selects_each_piece waited for the search status to read "1 of 1" and then read the painted marks. The input handler draws the count at once, but the marks are drawn in the next repaint frame (repaint.js, nextRender), so a slow renderer still showed the frame an earlier query painted: on macOS the marks read [1, 0], the shape the partial query "before shadow" leaves. The test now waits for rendered(page) between the two reads. The behavior it protects, a mark over each block's piece of a cross-block match, is unchanged. Refs #5950
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.
test_a_search_match_across_blocks_marks_and_selects_each_piece[browser-page]failed in the Nov 14 scheduledtest-macosjob with marks[1, 0]. The test waits for the search status to read1 of 1and then reads the marks. The input handler draws the count right away, but the marks are drawn in the next repaint frame (browser/runtime/repaint.js,nextRender). On a slow renderer, the test can read the marks while they still show an earlier query's frame. The partial querybefore shadowalso reads1 of 1, and it marks only the first block, which gives the[1, 0]macOS reported. The run's failure picture shows both pieces marked once the frame arrived. The test now callsrendered(page)between the status and the marks read. What it asserts is unchanged.Verified on Linux. With the page's animation frames delayed by 1.5s after
before shadowis typed, the old test fails withAssertionError: [1, 0]and the new one passes. All four engine/staging variants pass. Under the repository's rule for failures onlytest-macosshows, the next scheduled macOS run is the evidence after the fix.This settles one of the four failures in #5950. The margin card's 460px jump on reply focus and the two widget-quality runtimes that never started remain open there.
Refs #5950 — automated triage