mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
848a47b780
This introduces a new medule ContentTask, which includes a spawn method. This new method can be used to spawn a task in the content process of a browser. When called, a promise will be returned which resolves to the value returned by the task. This allows you to quickly write test code which can touch the content and return information without having to write custom framescripts all the time (The content code can be written inline as a simple generator definition). ContentTask is automatically included in the scope of mochitests. An example use follows: yield ContentTask.spawn(browser, {}, function* gen_replaceState() { content.window.history.replaceState({}, "", 'test-entry/'); return "Value that the promise will resolve with"; }); --HG-- extra : rebase_source : 9b6ae71407da582cdaa8087b5e367c72fa08a337 |
||
---|---|---|
.. | ||
config | ||
crashtest | ||
docker | ||
gtest | ||
instrumentation | ||
marionette | ||
mochitest | ||
modules | ||
mozbase | ||
mozharness | ||
profiles | ||
specialpowers | ||
talos | ||
taskcluster | ||
tools | ||
tps | ||
web-platform | ||
xpcshell | ||
cppunittest.ini | ||
mach_commands.py | ||
machine-configuration.json | ||
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