mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
9e157c27ca
Automatic update from web-platform-tests[service-workers] Return value in cleanup (#13163) Previously, many tests un-registered service workers using the testharness.js API `add_cleanup` without returning the promise which tracked the operation. While this ensured the operation was started at the completion of the test, it did not guarantee that the operation would be completed before the test was considered "complete." In automation scenarios where many tests are executed in rapid succession, this enabled a race condition: the navigation could interrupt the un-registration process. In order to account for the possibility of registrations that persisted from previous test failures, the tests included "setup" code to defensively un-register such workers. The `Test#add_cleanup` method was recently extended to support asynchronous "clean up" operations [1]. Use that API to ensure tests are not considered "complete" until after service worker un-registration is done. [1] https://github.com/web-platform-tests/wpt/pull/8748 -- wpt-commits: 7897f9d5beff624590d2fc254d2a7eca6e2b1e8f wpt-pr: 13163 |
||
---|---|---|
.. | ||
awsy | ||
config | ||
crashtest | ||
firefox-ui | ||
geckodriver | ||
gtest | ||
jsshell | ||
marionette | ||
mochitest | ||
modules | ||
mozbase | ||
mozharness | ||
profiles | ||
raptor | ||
runtimes | ||
specialpowers | ||
talos | ||
tools | ||
tps | ||
web-platform | ||
webdriver | ||
xpcshell | ||
cppunittest.ini | ||
mach_commands.py | ||
moz.build | ||
README.txt | ||
remotecppunittests.py | ||
runcppunittests.py | ||
testsuite-targets.mk |
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff