Fix flaky tab hover card test.

Change test to use two windows to prevent another window from becoming active when calling BrowserView::Deactivate(). Add helper class to wait for a window to become deactive.

Bug: 910739
Change-Id: I412a87bbc5de891f67697410e3848694f3c9a893
Reviewed-on: https://chromium-review.googlesource.com/c/1394874
Commit-Queue: Caroline Rising <corising@chromium.org>
Reviewed-by: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#620085}
1 file changed