Repository navigation
Wait for the Bold choice to reach the log before reloading in the playground restore test - #5338
Merged
Merged
Conversation
…ound test test_complete_views_restore_native_values_in_wrapped_layouts filled Title, pressed Bold and reloaded at once. Since #4845 the playground keeps its settings as `tune` events, so the field's blur records {title, tone: quiet} and the press records {title, tone: bold}; delivery sends the second only after the first's answer, so a reload inside that round trip kept the title and dropped Bold. macOS's slower runner hit the window. The test now waits for the log to hold the Bold tune, and still asserts both values restore. Closes #5124
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_complete_views_restore_native_values_in_wrapped_layoutsfills Title, presses Bold and reloads straight away. Since #4845 the playground saves its settings astuneevents in the log. The Title field's blur records{title, tone: quiet}, and the press then records{title, tone: bold}. Delivery sends the second tune only after the first one's answer arrives or shows up in the page's state. So a reload inside that round trip keeps the title and loses Bold. That is the exact failure in scheduled runs 41432142330 (macOS, both widths) and 41622727492 (macOS, 390). Linux passed in the same runs: its round trip is shorter.The test now waits until the log holds the Bold tune before it reloads. It still checks that the restored title, the checked radio and
host.values.titlecome back after the reload. #4845's intent and the playground's behavior are unchanged.Verification
quiettune, Title was restored and Bold was unchecked, on 3 of 3 runs.What this leaves
The underlying limit is in delivery, not this test. A gesture still waiting in the queue behind an unanswered one is not sent when the page unloads. The playground's
pagehidehandler only flushes edits that haven't been dispatched yet (#unsent), not ones already queued. A person would only lose a gesture this way by leaving within one round trip of two quick gestures. On a local server that's milliseconds, so this PR doesn't change delivery. Making the queue survive unload would need ordered keepalive sends and resolving the queued events' references to their predecessors.Closes #5124 — automated triage