mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
c9e960f859
This adds commands to start a reftest session, run a test, and end the session. It as assumed that after you start a reftest session you will just run reftests until you end the session. When starting a session the user provides a string indicating when screenshots should be taken, and an object mapping urls to a count of the number of times that url is expected to be used in the session, to help with caching. Running the tests takes a url to a test, an expected status, a timeout, and a nested list of possible references, in which each entry at a specific level is combined by OR and nested references are combined by AND. The implementation is heavilly inspired by the existing reftest harness, starting a minimal window with no tabs, and loading the urls directly in there. In order to get a screenshot in the e10s case we have to pass the DRAW_VIEW and USE_WIDGET_LAYERS flags when taking the screenshot. For performance we heavily cache canvases; for references that will be repeated we cache the full canvas with image, and we also cache a single canvas to use for all other screenshots to avoid the overhead of repeatedly creating a new canvas element. MozReview-Commit-ID: JOFvtmH7tg --HG-- extra : rebase_source : ab5a2ef2e450b9bbdc6bc3c9487ed5dfda2c1d4b |
||
---|---|---|
.. | ||
awsy | ||
config | ||
crashtest | ||
firefox-ui | ||
geckodriver | ||
gtest | ||
instrumentation | ||
marionette | ||
mochitest | ||
modules | ||
mozbase | ||
mozharness | ||
profiles | ||
runtimes | ||
specialpowers | ||
talos | ||
tools | ||
tps | ||
web-platform | ||
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