web_contents_stack_.push_back(web_contents);
if (is_platform_app()) {
- EXPECT_EQ(GetFirstShellWindowWebContents(), active_web_contents());
+ EXPECT_EQ(GetFirstAppWindowWebContents(), active_web_contents());
} else {
// For apps v1 only, the DOMOperationObserver is not ready at the LOAD_STOP
// event. A half second wait is necessary for the subsequent javascript
// injection to work.
// TODO(weitaosu): Find out whether there is a more appropriate notification
// to wait for so we can get rid of this wait.
- ASSERT_TRUE(TimeoutWaiter(base::TimeDelta::FromMilliseconds(500)).Wait());
+ ASSERT_TRUE(TimeoutWaiter(base::TimeDelta::FromSeconds(5)).Wait());
}
EXPECT_EQ(Chromoting_Main_URL(), GetCurrentURL());
// TODO(weitaosu): Revoke the permission at the beginning of the test so
// that we can test first-time experience here.
ConditionalTimeoutWaiter waiter(
- base::TimeDelta::FromSeconds(3),
+ base::TimeDelta::FromSeconds(7),
base::TimeDelta::FromSeconds(1),
base::Bind(
&RemoteDesktopBrowserTest::IsAuthenticatedInWindow,
UninstallChromotingApp();
VerifyChromotingLoaded(false);
}
+
+ // TODO(chaitali): Remove this additional timeout after we figure out
+ // why this is needed for the v1 app to work.
+ // Without this timeout the test fail with a "CloseWebContents called for
+ // tab not in our strip" error for the v1 app.
+ ASSERT_TRUE(TimeoutWaiter(base::TimeDelta::FromSeconds(2)).Wait());
}
void RemoteDesktopBrowserTest::Auth() {