Repository navigation
test: read the WebKit colours test's first words after a rendering update - #6436
Merged
Merged
Conversation
…date #6415 made test_o_gives_marked_words_their_own_colours_back read the re-shown link mark after a rendering update, since WebKit can screenshot words before it paints a highlight just registered. The test's first reading has the same race: it reads the unmarked string's syntax colour right after `lf-token-syn-string` is registered, and on a starved macOS runner WebKit had not yet painted it, so the string read grey (74, 78, 83) and the hidden-annotations check then compared the marked string's correct blue (29, 79, 107) against grey. The test now waits for `rendered` after each scheme change, before that reading.
leaf-agent
approved these changes
Nov 18, 2026
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.
#6415 made
test_o_gives_marked_words_their_own_colours_backread the re-shown link mark after a rendering update, since WebKit can screenshot words before it paints a highlight just registered. The test's first reading has the same race. It reads the unmarked string's syntax colour right afterlf-token-syn-stringis registered, and on a starved macOS runner WebKit hadn't painted it yet, so the string read grey(74, 78, 83); the hidden-annotations check then compared the marked string's correct blue(29, 79, 107)against that grey and failed. The test now waits forrenderedafter each scheme change, before that reading. It's a test fix: WebKit does paint the colour.Evidence, from CI's macOS runner running only this test as 20 copies one at a time beside four busy loops (
flake="--workers 1 --load 4 …", the dispatch input #6434 adds): main failed it at this reading in 17 of 20 (run 44407433212) and, after today's later merges, in 15 of 20 (run 44410667696), and this change passed 20 of 20 (run 44410662485). The nightly hasn't shown this reading fail; the load here is harsher than the nightly's.Refs #6303. Found while checking that the new dispatch input reproduces the failure #6415 fixed.