Open Bug 1460333 Opened 2 years ago

[wpt-sync] Sync PR 10933 - Expose done promise on Test

Categories

(Testing :: web-platform-tests, enhancement, P4)

enhancement

Tracking

(Not tracked)

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Lennart Grahl <lennart.grahl@gmail.com> wrote:
>  Expose done promise on Test
>  
>  Expose the *done* promise as `Test.done_promise` when using a `promise_test`. Allows to mix event callback handling with promise-based tests.
>  
>  Real world examples: https://gist.github.com/lgrahl/de4101dc0276f28975a028a595ce05d7 and #10468
You need to log in before you can comment on or make changes to this bug.