-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor WebAppFrameToolbarView ownership 6/x: Tests.
This modifies a bunch of tests to access the WebAppFrameToolbarView via BrowserView, to make sure they pass both with and without the WebAppFrameToolbarInBrowserView feature enabled. Differences in behavior exposed by these tests ("now" being the future state where the feature is enabled): - popups on Chrome OS now have their toolbar hidden rather than not created at all. - also on Chrome OS, before if a permission bubble was open when entering full screen the bubble would move from being attached to the toolbar to instead just being drawn in the top-left corner. Now instead the bubble will remain attached to the toolbar (and the toolbar will be auto-revealed). This change in behavior is because previously the code that checked if any bubbles are attached to things in the top-container when entering fullscreen ran before the web app toolbar was reparented to the top-container. Now the web app toolbar is always in the top-container so this existing logic can now properly deal with these bubbles/revealing the top-container. - before visibility of the toolbar when entering/exiting "overview" mode on chrome OS would synchronously update. Now the visibility only gets updated once layout completes. The test for this has been modified to trigger this scheduled layout before verifying the result. - WebAppNonClientFrameViewAshTest.ButtonVisibilityInOverviewMode apparently only passed previously because it verified button visibility before doing any pending layouts. With the new implementation layout is needed to update button visibility, which revealed this bug in the old implementation. Rather than trying to fix the old implementation, for now I made the test only trigger the layout with the new implementation, since the old one should go away soon anyway. Bug: 1407240 Change-Id: I2e77ad409d7c04550d96ddbfde821ec470929492 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4194052 Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/main@{#1100830}
- Loading branch information
1 parent
badcdae
commit 51873ce
Showing
11 changed files
with
125 additions
and
59 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.