Closed Bug 1644131 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 24030 - Add wait_for and wait_for_callback functions

Categories

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

task

Tracking

(firefox79 fixed)

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

James Graham <james@hoppipolla.co.uk> wrote:

Add wait_for and wait_for_callback functions

These allows tests that would normally use set_timeout to wait on a condition
function instead. That means faster execution when the timeout is too long
and more leeway for cases where the timeout would have been marginal or
too short.

Test result changes from PR not available.
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/232991b4fb0b
[wpt PR 24030] - Add step_wait, step_wait_func, and step_wait_func_done functions, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.