Repository navigation
test: report the panel thread's whole reading when an append moves its first message - #6971
Merged
Merged
Conversation
…s first message The idle panel-thread append test asserted the first message's offset within the view and only then the view's scrollTop, so a failing offset told nothing of whether the view scrolled, moved on screen, or the message moved inside it. It now takes one reading of offset, scrollTop and the view's and message's window tops, and a failure prints both readings. The behavior asserted is unchanged. Refs #6754
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_an_idle_open_panel_thread_shows_appended_repliesnow takes one reading of the first message's place (its offset within.lf-fp-view, the view'sscrollTop, and the view's and message's tops in the window) before and after the append, and a failure prints both readings. Before, the offset assertion failed first, so the macOS failures in #6754 (18.09vs14 ± 0.5for[short],15.02for[tall]) couldn't say whether the view scrolled, moved on screen, or the message moved inside it. The test asserts the same thing as before: the offset holds within 0.5 px andscrollTopis unchanged.The failure hasn't reproduced off the nightly. On the
test-macosrunner with--load 4, 18 copies of each case and oftest_the_thread_walk_stands_on_each_thread_it_opensall passed (run 45342336235), and the Nov 23 scheduled run passed all three. Both cases pass locally with this change.Refs #6754 — automated triage