mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
ba271f3c89
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest: from manifestparser import expression import mozinfo def timeout_if(tests, values): for test in tests: if 'timeout-if' in test: timeout, condition = test['timeout-if'].split(',', 1) if expression.parse(condition, **values): test['timeout'] = timeout yield test tests = mp.active_tests(filters=[timeout_if], **mozinfo.info) --HG-- extra : rebase_source : adead90910811e71e8ea2bb862f2b8e92f2c1bee |
||
---|---|---|
.. | ||
chrome | ||
dynamic | ||
manifests | ||
MochiKit | ||
pywebsocket | ||
roboextender | ||
ssltunnel | ||
static | ||
tests | ||
android23.json | ||
android.json | ||
androidx86.json | ||
b2g_start_script.js | ||
bisection.py | ||
browser-harness.xul | ||
browser-test-overlay.xul | ||
browser-test.js | ||
cc-analyzer.js | ||
chrome-harness.js | ||
chunkifyTests.js | ||
gen_template.pl | ||
gl.json | ||
harness.xul | ||
install.rdf | ||
jar.mn | ||
jetpack-addon-harness.js | ||
jetpack-addon-overlay.xul | ||
jetpack-package-harness.js | ||
jetpack-package-overlay.xul | ||
mach_commands.py | ||
Makefile.in | ||
manifest.webapp | ||
manifestLibrary.js | ||
mochitest_options.py | ||
mochitest-e10s-utils.js | ||
moz.build | ||
nested_setup.js | ||
pywebsocket_wrapper.py | ||
README.txt | ||
redirect.html | ||
runtests.py | ||
runtestsb2g.py | ||
runtestsremote.py | ||
server.js |
See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.