Refactor pointerevents_iframe-touch-action-none
Problems in the test:
- onload only ensures the parent frame is loaded and not the child
frame. Fix by explicitly triggering load of the child frame and
waiting on completion. - assumes message from child frame will be posted and processed by the
time the button is pressed, but this can happen too quickly. Fix by
waiting on a message promise from the child frame. - concatenation of events from the child frame is needlessly
convoluted and likely the result of copy-paste from another test.
1 flake over 100 runs without fix.
0 flakes over 600 runs with the fix.
Bug: 40770210
Change-Id: Icf6640ee87b0d85f93bfa0753794545f1c302462
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6035259
Reviewed-by: Mustaq Ahmed mustaq@chromium.org
Commit-Queue: Kevin Ellis kevers@chromium.org
Cr-Commit-Position: refs/heads/main@{#1386777}