Commit a5f8f278 authored by eugenebut's avatar eugenebut Committed by Commit bot

[ios] Fixed SetPageDisplayStateWithUserScalableEnabled test for iOS 10.

Looks like maximum zoom scale on iOS10 is 5.0, which should be set
instead of 10.0.

BUG=626688

Review-Url: https://codereview.chromium.org/2134873002
Cr-Commit-Position: refs/heads/master@{#404518}
parent 6fe638ca
......@@ -757,7 +757,8 @@ TEST_F(CRWWebControllerPageScrollStateTest,
// TODO(iOS): Flaky on the bots. crbug/493427
TEST_F(CRWWebControllerPageScrollStateTest,
FLAKY_SetPageDisplayStateWithUserScalableEnabled) {
web::PageZoomState zoom_state(1.0, 10.0, 1.0);
web::PageZoomState zoom_state(1.0, 5.0, 1.0);
LoadHtml(GetHTMLForZoomState(zoom_state, PAGE_SCALABILITY_ENABLED));
WaitForZoomRendering(web_controller(), zoom_state);
......@@ -767,7 +768,7 @@ TEST_F(CRWWebControllerPageScrollStateTest,
CreateTestPageDisplayState(CGPointMake(1.0, 1.0), // scroll offset
3.0, // relative zoom scale
1.0, // original minimum zoom scale
10.0, // original maximum zoom scale
5.0, // original maximum zoom scale
1.0)); // original zoom scale
[web_controller() restoreStateFromHistory];
......
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