Another attempt at deflaking LoAF tests
We pass the busy_wait function as a parameter that observes the LoAF
and resolves the promise.
The reference timestamp is in the middle of the busy_wait period.
The usual busy_wait time is not used for LoAF creation, however
sometimes it is made accessible on the window for external script
blocks.
Bug: 40263438
Change-Id: If37c18ef6d760dc5e10f3bbe7155f921aba6b618
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6037601
Reviewed-by: Michal Mocny mmocny@chromium.org
Commit-Queue: Noam Rosenthal nrosenthal@chromium.org
Cr-Commit-Position: refs/heads/main@{#1388978}