[WebUI] Make some webUI related tests use setTimeout 1
Currently SetTimeout(..., 0) is clamped up to 1ms while which is not supposed to be in the spec. The Speedometer2 performance can boost ~1% on Windows without it based on Pinpoint perf. This CL is intended to fix the devtool tests that become flaky with https://chromium-review.googlesource.com/c/chromium/src/+/2578703 Flaky tests list: * chrome/test/data/webui/new_tab_page/utils_test.js * chrome/test/data/webui/test_util.js Bug: 402694 Change-Id: I98d385cd8089e713040ab2969083bfbc16372c48 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2600274Reviewed-by:John Lee <johntlee@chromium.org> Commit-Queue: Wanming Lin <wanming.lin@intel.com> Cr-Commit-Position: refs/heads/master@{#839309}
Showing
Please register or sign in to comment