Commit d566194d authored by Olivier Robin's avatar Olivier Robin Committed by Commit Bot

Increase timeout in WebStateTest.Snapshot

The current timeout for page load (0.1s) is a bit short and leads to
flakyness on official bots on iPad Air.
I can reproduce the flakyness locally.
Increase the timeout to 1s as the loading is not the tested part.

Bug: None
Change-Id: Ie944a99590f8083e2c22d43769dcdf7d9a0dcab1
Reviewed-on: https://chromium-review.googlesource.com/579369Reviewed-by: default avatarEd Chin <edchin@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488649}
parent 5578c07d
...@@ -127,7 +127,7 @@ TEST_F(WebStateTest, Snapshot) { ...@@ -127,7 +127,7 @@ TEST_F(WebStateTest, Snapshot) {
addSubview:web_state()->GetView()]; addSubview:web_state()->GetView()];
// The subview is added but not immediately painted, so a small delay is // The subview is added but not immediately painted, so a small delay is
// necessary. // necessary.
base::test::ios::SpinRunLoopWithMinDelay(base::TimeDelta::FromSecondsD(0.1)); base::test::ios::SpinRunLoopWithMinDelay(base::TimeDelta::FromSecondsD(0.2));
CGSize target_size = CGSizeMake(100.0f, 100.0f); CGSize target_size = CGSizeMake(100.0f, 100.0f);
web_state()->TakeSnapshot( web_state()->TakeSnapshot(
base::BindBlockArc(^(const gfx::Image& snapshot) { base::BindBlockArc(^(const gfx::Image& snapshot) {
......
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