Closed Bug 1954610 Opened 1 year ago Closed 1 year ago

Fix transparent-text-* LCP Web Platform Tests

Categories

(Core :: DOM: Performance APIs, defect)

defect

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: jlink, Assigned: jlink)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file, 1 obsolete file)

Both of these tests have similar, questionable behavior - they wait until the "larger_text" element is added to the LCP entries list, and then assert that there is exactly one item in that list. This doesn't really make sense, as there are two LCP-eligible elements on the page and there is no guarantee on the order, in time, in which they will get added.
To fix this, we should wait until both elements get added to the list and then confirm that the correct one is in the last position in that list.

rather than once the tested one is there. r=sfeng

Depends on D241892

Attachment #9472555 - Attachment description: WIP: Bug 1954610: Fixed wpt transparent-text tests to verify 'last' entry → Bug 1954610: Fixed wpt transparent-text tests to verify 'last' entry rather than look at count r=sefeng
Attachment #9472556 - Attachment description: WIP: Bug 1954610: Resolve the promise once there are two entries in the list, → Bug 1954610: Resolve the promise once there are two entries in the list, rather than once the tested one is there. r=sefeng
Attachment #9472556 - Attachment is obsolete: true

The severity field is not set for this bug.
:bas.schouten, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bas)
Component: Performance: General → DOM: Performance APIs
Flags: needinfo?(bas)

https://github.com/web-platform-tests/interop/issues/948 has been created to facilitate any potential discussion on this topic.

Pushed by jlink@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72d7a5668f5c Fixed wpt transparent-text tests to verify 'last' entry rather than look at count r=sefeng
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51945 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-triage-done-c140/b139]
Blocks: 1972151
Blocks: 1974035
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: