[wpt-sync] Sync PR 29804 - Add support for rerunning testharness(+testdriver) tests
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox95 fixed)
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 29804 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/29804
Details from upstream follow.
b'James Graham <james@hoppipolla.co.uk>' wrote:
Add support for rerunning testharness(+testdriver) tests
When running a test that uses testdriver using reload doesn't work,
because the testdriver parts won't rerun. This is annoying. To make
the development experience better, add a rerun button to testharness
tests. In the case where the test is being run directly from the
server, this just ends up calling window.reload(). In the case we're
running via wptrunner, it causes the test to be rerun from the start.Implementation wise, this works by dispatching an event (currently
named__test_restart
) from the rerun button. This can be caught by
the wait() implementation in executors, which now provide a return
value of True to rerun the test and False to continue with the next
test.There is an edge case where the manual reruns are mixed with automatic
reruns specified on the command line. In practice it's not clear what
the use case is, but the behaviour as written is to ensure the test is
run at least as many times as specified on the command line, counting
manual reruns against that total.
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
bugherder |
Description
•