зеркало из https://github.com/mozilla/gecko-dev.git
63324905ef
Provide a way to use service workers as the background script in existing tests, possibly by only requiring minimal changes to the existing test cases. This patch includes: - changes needed to detect when a test extension is being created for a test running in the "background service worker mode" and automatically turn the background script into a background service worker (instead of a background page) when not explicitly listed in the test extension manifest - a new mochitest-serviceworker.ini manifest where new or existing test files meant to be run on a background service worker can be added to run them automatically in the "background service worker mode" - a new test_verify_sw_mode.html smoke test that make sure the mochitest-serviceworker.ini manifest is running in the expected mode. - a new `sw-webextension` tag, which can be used locally to run a test file only in the "background service worker mode" - changes to test_ext_test.html to make it able to run in both background pages and background workers - small tweaks to `test` API (both the WebIDL binding and the current bindings injected from privileged js code, to better match each other behavior) Differential Revision: https://phabricator.services.mozilla.com/D122536 |
||
---|---|---|
.. | ||
BrowserTestUtils | ||
MochiKit | ||
baselinecoverage | ||
chrome | ||
dynamic | ||
embed | ||
manifests | ||
pywebsocket3 | ||
ssltunnel | ||
static | ||
tests | ||
README.txt | ||
ShutdownLeaksCollector.jsm | ||
__init__.py | ||
api.js | ||
bisection.py | ||
browser-harness.xhtml | ||
browser-test.js | ||
chrome-harness.js | ||
chunkifyTests.js | ||
document-builder.sjs | ||
favicon.ico | ||
harness.xhtml | ||
leaks.py | ||
mach_commands.py | ||
mach_test_package_commands.py | ||
manifest.json | ||
manifest.webapp | ||
manifestLibrary.js | ||
mochitest-e10s-utils.js | ||
mochitest_options.py | ||
moz.build | ||
pywebsocket_wrapper.py | ||
redirect.html | ||
runjunit.py | ||
runtests.py | ||
runtestsremote.py | ||
schema.json | ||
server.js | ||
shutdown-leaks-collector.js | ||
start_desktop.js |
README.txt
See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.