mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 15:02:11 +00:00
5fd8e99e6a
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
1 line
131 B
XML
1 line
131 B
XML
<window id="reftest" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="window.arguments[0]()"></window> |