• Mike Dougherty's avatar
    [iOS][Test] Attach WKWebView to windowed container · 43463aca
    Mike Dougherty authored
    This test is flaky on the bots when run as part of the suite. Although
    unable to reproduce locally, the calls to ExecuteJavaScript were failing
    which points to a general test problem.
    
    Without being attached to a windowed view, WKWebView can internally
    suspend processes. Add the |web_view| to a windowed container to try to
    prevent flake.
    
    Additionally, extend the timeout for JavaScript execution because the
    old timeout was too short for JavaScript execution to always complete.
    
    Bug: 1013206
    Change-Id: I1bd685563bc0e522647ab0402e64428fa746e430
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1856659Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
    Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
    Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
    Auto-Submit: Mike Dougherty <michaeldo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#706639}
    43463aca
wait_util.mm 3.14 KB