Flaky tab bounds in Windows tests

54 views
Skip to first unread message

Michael Martis

unread,
Feb 6, 2023, 2:02:48 PM2/6/23
to chromi...@chromium.org
Hi all,

I am testing logic that calculates the screen bounds of a web contents.

It does so with something like
web_contents_native_view_top_level_widget->GetClientAreaBoundsInScreen()
(actual code here) which I think is typical.

In tests, I set the web contents bounds with
browser()->window()->SetBounds(...)
(actual code here).

It works for all platforms except Windows, where the actual bounds are sometimes ~8 pixels different than expected. An Example failure is here.

What am I doing wrong?

Thanks for your help with a prickly problem,
Michael.





Reply all
Reply to author
Forward
0 new messages