Repository navigation
test: measure lf-note's frame inset past its indent margin, and finish the held search before Shift+n - #6211
Merged
Merged
Conversation
…h the held search before Shift+n Two tests failed in main's push run 43928743834 (3bc5615). test_code_is_colored_without_a_word_moving asserted that the docked note's box starts 1px inside the code frame. #6191 moved the line's indent out of the note's padding into its margin-inline-start, so the box now starts at the indent (33.5px for the 4-space line) while the card and words stay where they were. The test now measures the margin box, which is what meets the frame. It fails on main and passes with this change, and passes with #6191's code.css reverted on the old assertion. test_a_step_back_after_the_page_changed_keeps_the_match_it_stood_on released the held search slices and pressed Shift+n at once. On a slow CPU the search was still running, so the step back stayed on the first match ("Searching"), as designed, and the wait for the last match timed out. The test now runs the held slices, and the ones they schedule, until the search ends before pressing. `leaf-dev suite flake --cpu-throttle 8` failed it 4 of 18 before and 0 of 18 after (0 of 18 at throttle 16). Refs #3985
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 tests failed in main's push run 43928743834 (
3bc561561). This PR fixes both, and changes only the tests.test_code_is_colored_without_a_word_moving: the test was stale after fix: keep lf-note, lf-code's example and lf-shot at their first-paint size #6191. That PR moved a dockedlf-note's line indent out of its padding and intomargin-inline-start, so the card keeps its first-paint size. The card and its words still stand where they did, but the note's border box now starts at the indent: 33.5px from the frame for the example's 4-space line, where the test expected 1px. The test now measures the note's margin box, which is what meets the frame (to within 0.1px, since the indent is a fractional number ofch). It fails onmain. With fix: keep lf-note, lf-code's example and lf-shot at their first-paint size #6191'scode.cssreverted, the old assertion passes.test_a_step_back_after_the_page_changed_keeps_the_match_it_stood_on: the test pressed before the page was ready. It released the held search slices and pressed Shift+n at once. On a slow runner the search was still going, so the step back stayed on the first match and said "Searching", which is the behavior Keep n/N's place when the page changes while a repeated page search still runs #5910 specified, and the wait for the last match ran out at 120 s. The test now runs the held slices, and any they schedule, until the search ends, and then presses. Withleaf-dev suite flake --cpu-throttle 8, it failed 4 of 18 copies before this change and 0 of 18 after. It also passed 18 of 18 at throttle 16.The other two failures in that run already have owners: #5642/#6130 and #6139.
Not covered here: at throttle 8 to 16,
test_code_is_colored_without_a_word_movingalso fails sometimes at an earlier line. The test reads thelf-codetoken colours beforebucket_keyis split into its own span. CI has not shown this failure, and it happens with or without this change.Refs #3985 — automated triage