[wpt-sync] Sync PR 28225 - Test should assert if bodiesNum is 0
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 28225 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/28225
Details from upstream follow.
b'Trevor Rowbotham <trevor.rowbotham@pm.me>' wrote:
Test should assert if bodiesNum is 0
Currently, clearing-stack-back-to-a-table-body-context.html#L54 will only assert that
bodiesNum === table.tBodies.length
ifbodiesNum
is truthy, however, clearing-stack-back-to-a-table-body-context.html#L127 specifies 0 forbodiesNum
, which is falsy and we skip the assert. Presumably, we want to assert if an integer is given so we change the condition to explicitly check fornull
andundefined
instead.This also proactively fixes the same condition in clearing-stack-back-to-a-table-context.html#L46
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
CI Results
Ran 15 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 2 tests and 6 subtests
Status Summary
Firefox
OK : 2
PASS: 39
Chrome
OK : 2
PASS: 39
Safari
OK : 2
PASS: 39
Links
Comment 4•4 years ago
|
||
bugherder |
Description
•