Chromium Code Reviews
DescriptionConvert more test helpers to base::RunLoop, fix page title checks. (Reland)
This CL removes the "deferred quit" from most of the touched helpers.
The exclusions are UrlCommitObserver and TestFrameNavigationObserver.
They were already using immediate quit mode, so there is no change in
their behavior, just cleanup.
This is a reland of https://codereview.chromium.org/2601843002. It
caused flakiness in a pair of ClickModifierTests, because I was wrong
when removed the WaitForLoadStop call. After that the TitleWatcher could
be created after the load start, but before the title arrives. In this
case WebContents::GetTitle basically returns the url, and TitleWatcher
was modified to simply return it.
Turns out that waiting this way (without specific expectations) for a
title can easily be done wrong, so I removed changes related to it.
These tests now use TestNavigationObserver, which should be robust
(unless there is some unrelated feature that can create WebContents at
a random time, which I believe is not the case in chromium browser tests).
The first patch set contains the original CL, the second one includes
the fix.
BUG=668707, 681035
Review-Url: https://codereview.chromium.org/2635933003
Cr-Commit-Position: refs/heads/master@{#444674}
Committed: https://chromium.googlesource.com/chromium/src/+/29276c3a4db55690390a4a2c7d072f21cd7b34d9
Patch Set 1 #Patch Set 2 : Fix ClickModifierTests. #Messages
Total messages: 16 (9 generated)
|