Fix flaky test document-policy-oversized-images-resize.html
Previous fix to the failing test was to add a setTimeout on resize javascript so that the initial frame can be rendered before the resize. (https://chromium-review.googlesource.com/c/chromium/src/+/2090457) It turns out setTimeout is not a reliable way to force layout. This CL uses |runAfterLayoutAndPaint| to force multiple layouts happening instead of only once at the end by default for pixel tests. Bug: 1061539, 1060776 Change-Id: If068a63655eaacf1300b963e60e441a04fc59784 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2124888 Commit-Queue: Charlie Hu <chenleihu@google.com> Reviewed-by:Ian Clelland <iclelland@chromium.org> Cr-Commit-Position: refs/heads/master@{#754633}
Showing
2.8 KB
2.9 KB