Repository navigation
test: enter Capture area by key with the pointer on the words in the restyle test - #6814
Merged
Merged
Conversation
…restyle test test_a_page_mode_restyles_only_what_the_pointer_is_over entered Capture area by clicking its row in the annotate menu, so the pointer rested wherever that row stood once the menu closed. #6788 (f014d63) changed the menu's rows, which moved the Capture row 30 px lower, from over a paragraph to the section's gap between two paragraphs. There Chromium restyles everything the hovered box holds (integration.css), 601 elements against a cap of 171, so the test failed on every run since. The test now presses Enter on the focused row with the pointer resting on the words, as each mode before it does. Capture area's behavior is unchanged; the test still fails (694) when the crosshair is stated on every element. Refs #6813
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_page_mode_restyles_only_what_the_pointer_is_overhas failed on every run since #6788 (f014d63e1), with one style recalc of 601 elements against its cap of 171 (684 / 4). The test entered Capture area by clicking the row in the annotate menu, so the pointer rested wherever that row happened to stand once the menu closed. #6788 changed the menu's rows and moved the Capture row 30 px lower (y 716 → 746). That spot is in the test page's<section>, in the gap between two paragraphs, not on a paragraph. When the pointer rests on a box like that, Chromium restyles everything the box holds. The header ofbrowser/styles/components/integration.cssalready states this cost. Capture area itself behaves as before.The test now focuses the row and presses Enter, with the pointer resting on the words the way it does for each mode before it. So it measures what the pointer is over again, not the menu's layout.
874e527fcpasses andf014d63e1fails, and each commit gave the same result on every run.main, the test failed 3 of 3 runs before this change and passes 3 of 3 after it.:root[data-lf-region-capture] * { cursor: crosshair; }appended tointegration.css, it fails at 694.The run's other failure,
test_the_reference_lists_each_of_the_panel_s_keys_once, was fixed by #6809 and passes on currentmain.Refs #6813 — automated triage