Commit cce92f96 authored by vasilii's avatar vasilii Committed by Commit bot

Fix potential flakiness in PrerenderBrowserTest.AutosigninInPrerenderer

This is a follow-up to https://codereview.chromium.org/2458953002.

BUG=660278

Review-Url: https://codereview.chromium.org/2478163002
Cr-Commit-Position: refs/heads/master@{#430258}
parent 19adfcc2
......@@ -3250,9 +3250,9 @@ IN_PROC_BROWSER_TEST_F(PrerenderBrowserTest, AutosigninInPrerenderer) {
base::Bind(&CreateCountingInterceptorOnIO,
done_url, empty_file, done_counter.AsWeakPtr()));
// Loading may finish or be interrupted. The final result is important only.
// TODO(http://crbug.com/660278): TestPrrenderContents can be created after
// the JS code runs. The result would be a test timeout.
DisableLoadEventCheck();
// TestPrenderContents is always created before the Autosignin JS can run, so
// waiting for PrerenderContents to stop should be reliable.
PrerenderTestURL("/password/autosignin.html",
FINAL_STATUS_CREDENTIAL_MANAGER_API, 0);
EXPECT_EQ(0, done_counter.count());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment