Closed Bug 1588343 Opened 6 years ago Closed 6 years ago

[wpt-sync] Sync PR 19657 - [html] Clean state between dialog positioning tests

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 19657 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/19657
Details from upstream follow.

Darryl Pogue <darryl@dpogue.ca> wrote:

[html] Clean state between dialog positioning tests

Calling reset() at the end of every test to close the modal dialog will only be invoked if the test passes. If an expectation fails, the call to reset() will never run and the dialog will remain modally open on the page. This causes all further tests to fail because calling showModal() on the dialog while it is open is an error.

Instead, set up reset() to be called as a cleanup after every test regardless of whether the test passes or fails.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
## GitHub CI Results wpt.fyi [PR Results](https://wpt.fyi/results/?sha=e5703f32bba57534b5721982bec8602ea6eff742&label=pr_head) [Base Results](https://wpt.fyi/results/?sha=e5703f32bba57534b5721982bec8602ea6eff742&label=pr_base) Ran 2 tests and 23 subtests ### Firefox OK : 1 FAIL : 16 ERROR : 1 NOTRUN: 7 ### Chrome OK : 2 PASS: 22 FAIL: 1 ### Safari OK : 1 FAIL : 16 ERROR : 1 NOTRUN: 7 ### Existing tests that now have a worse result /html/semantics/interactive-elements/the-dialog-element/dialog-showModal.html: Firefox: OK->ERROR, Chrome: OK->OK, Safari: OK->ERROR opening dialog with multiple focusable children: Firefox: FAIL->NOTRUN, Chrome: PASS->PASS, Safari: FAIL->NOTRUN opening dialog with multiple focusable children, one having the autofocus attribute: Firefox: FAIL->NOTRUN, Chrome: PASS->PASS, Safari: FAIL->NOTRUN showModal() on a <dialog> not in a Document throws an InvalidStateError exception: Firefox: FAIL->NOTRUN, Chrome: PASS->PASS, Safari: FAIL->NOTRUN opening dialog without focusable children: Firefox: FAIL->NOTRUN, Chrome: FAIL->FAIL, Safari: FAIL->NOTRUN when opening multiple dialogs, only the newest one is non-inert: Firefox: FAIL->NOTRUN, Chrome: PASS->PASS, Safari: FAIL->NOTRUN showModal() on a <dialog> after initial showModal() and removing the open attribute: Firefox: FAIL->NOTRUN, Chrome: PASS->PASS, Safari: FAIL->NOTRUN when opening multiple dialogs, the most recently opened is rendered on top: Firefox: FAIL->NOTRUN, Chrome: PASS->PASS, Safari: FAIL->NOTRUN ## Gecko CI Results Ran 2 tests and 23 subtests OK : 2 PASS : 5 FAIL : 18
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/b4b0c19ff248 [wpt PR 19657] - [html] Clean state between dialog positioning tests, a=testonly
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.