-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1808961 [wpt PR 37780] - De-flake element-timing/image-src-change…
….html, a=testonly Automatic update from web-platform-tests De-flake element-timing/image-src-change.html The test was flaky for 2 reasons. 1, By the time the beforeRender timestamp is taken, the image may already be rendered. The assertion that renderTime >= beforeRender therefore could fail. A previous CL crrev.com/c/4118623 fixes this. But the 2nd flakiness cause is found. 2, There was an assertion in the original test that the entryList of the performance observer callback should be of size 1. This assertion is carried over to the fix and is found to be causing flakiness as well. It is because the performance observer has buffered option. At the invocation of observer.observe(..}), the observer picks up the previous entries and fires the observer callback. Then, if the callback is actually executed after the 2nd element timing entry is added, the entryList size would be 2. The assertion then fails. This CL fixes it by removing the buffered option. Bug: 1394227,1403318 Change-Id: I58a9da6832bccd4377696c7d7f50508ef1254011 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4139461 Reviewed-by: Ian Clelland <[email protected]> Commit-Queue: Hao Liu <[email protected]> Cr-Commit-Position: refs/heads/main@{#1090458} -- wpt-commits: e3a59ab3ab1dde51fedda63f468f77d0b9cca0fb wpt-pr: 37780
- Loading branch information
1 parent
f596817
commit 874ae22
Showing
2 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters