gecko-dev/testing/mochitest
Luca Greco 63324905ef Bug 1724026 - Support running existing Extension API mochitests with a background service worker. r=mixedpuppy
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
2022-01-12 11:33:13 +00:00
..
BrowserTestUtils Bug 1742351: Update more browser/ tests to be compliant with https-first mode r=extension-reviewers,Gijs,robwu 2021-11-22 14:26:32 +00:00
MochiKit
baselinecoverage
chrome Bug 1747065 - remove plugin.load_flash_only setters which are no-ops r=mossop 2021-12-21 14:34:48 +00:00
dynamic Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers 2021-10-18 09:26:33 +00:00
embed
manifests
pywebsocket3
ssltunnel Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
static
tests Bug 1724026 - Support running existing Extension API mochitests with a background service worker. r=mixedpuppy 2022-01-12 11:33:13 +00:00
README.txt
ShutdownLeaksCollector.jsm
__init__.py
api.js Bug 1728461 - Properly remove startup canary on Android to avoid purged caches r=agi,rpl,mossop 2021-09-16 14:25:45 +00:00
bisection.py
browser-harness.xhtml Bug 1720535: Add https-first-disabled annotation to mochitest harness r=ahal 2021-07-26 16:47:45 +00:00
browser-test.js Bug 1729263 - automatically upload profiles of failed browser-chrome tests, r=ahal 2021-12-09 18:42:48 +00:00
chrome-harness.js
chunkifyTests.js
document-builder.sjs Bug 1739708 - Turn off ESLint rule mozilla/reject-importGlobalProperties for sjs files. r=Gijs,webdriver-reviewers,whimboo 2021-11-09 08:38:16 +00:00
favicon.ico
harness.xhtml
leaks.py
mach_commands.py Bug 1744091 - Update test harnesses to run with fission by default, except on android; r=perftest-reviewers,releng-reviewers,jmaher,AlexandruIonescu 2022-01-07 20:30:45 +00:00
mach_test_package_commands.py Bug 1529082 - Move TestRunnerActivity to test_runner. r=ahal,owlish 2021-11-02 18:56:26 +00:00
manifest.json
manifest.webapp
manifestLibrary.js Bug 1720535: Add https-first-disabled annotation to mochitest harness r=ahal 2021-07-26 16:47:45 +00:00
mochitest-e10s-utils.js
mochitest_options.py Bug 1744091 - Update test harnesses to run with fission by default, except on android; r=perftest-reviewers,releng-reviewers,jmaher,AlexandruIonescu 2022-01-07 20:30:45 +00:00
moz.build Backed out 2 changesets (bug 1714688) for causing Bug 1717578. CLOSED TREE 2021-06-22 19:06:18 +03:00
pywebsocket_wrapper.py
redirect.html
runjunit.py Bug 1743907 - remove webrender from harnesses and taskcluster. r=MasterWayZ,webdriver-reviewers,perftest-reviewers,AlexandruIonescu,whimboo,ahal 2022-01-04 20:07:45 +00:00
runtests.py Bug 1724026 - Ensure that test files included in multiple manifest are executed once per manifest. r=gbrown 2022-01-12 11:33:12 +00:00
runtestsremote.py Bug 1707591 - ride along - reformat the tree with black 21.10b0 r=ahal,webdriver-reviewers,perftest-reviewers,whimboo,gerard-majax,alexandru.irimovici 2021-11-22 22:10:03 +00:00
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.