Commit b0841754 authored by Xiyuan Xia's avatar Xiyuan Xia Committed by Commit Bot

Re-enable EulaTest.LoadOffline

Bug: 817995
Change-Id: I305739b830ad9c628f6adc88ca930adccc4bfeea
Reviewed-on: https://chromium-review.googlesource.com/1054219Reviewed-by: default avatarAchuith Bhandarkar <achuith@chromium.org>
Commit-Queue: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557979}
parent 43b2d267
......@@ -192,16 +192,18 @@ IN_PROC_BROWSER_TEST_F(EulaTest, LoadOnline) {
// Tests that offline version is shown when the online version is not
// accessible.
// Disabled due to flaky timeouts; https://crbug.com/817995.
IN_PROC_BROWSER_TEST_F(EulaTest, DISABLED_LoadOffline) {
IN_PROC_BROWSER_TEST_F(EulaTest, LoadOffline) {
set_allow_online_eula(false);
ShowEulaScreen();
content::WebContents* eula_contents = FindEulaContents();
ASSERT_TRUE(eula_contents);
// Wait for the fallback offline page (loaded as data url) to be loaded.
while (!eula_contents->GetLastCommittedURL().SchemeIs("data"))
while (!eula_contents->GetLastCommittedURL().SchemeIs("data")) {
// Pump messages to avoid busy loop so that renderer could do some work.
base::RunLoop().RunUntilIdle();
WebContentsLoadFinishedWaiter(eula_contents).Wait();
}
EXPECT_TRUE(GetLoadedEulaAsText().find(kOfflineEULAWarning) !=
std::string::npos);
......
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