mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 19:55:39 +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
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
marionette.jar:
|
|
% content marionette %content/
|
|
content/server.js (server.js)
|
|
content/driver.js (driver.js)
|
|
content/action.js (action.js)
|
|
content/legacyaction.js (legacyaction.js)
|
|
content/browser.js (browser.js)
|
|
content/interaction.js (interaction.js)
|
|
content/accessibility.js (accessibility.js)
|
|
content/listener.js (listener.js)
|
|
content/element.js (element.js)
|
|
content/frame.js (frame.js)
|
|
content/cert.js (cert.js)
|
|
content/event.js (event.js)
|
|
content/error.js (error.js)
|
|
content/wait.js (wait.js)
|
|
content/message.js (message.js)
|
|
content/modal.js (modal.js)
|
|
content/proxy.js (proxy.js)
|
|
content/capture.js (capture.js)
|
|
content/cookie.js (cookie.js)
|
|
content/atom.js (atom.js)
|
|
content/evaluate.js (evaluate.js)
|
|
content/navigate.js (navigate.js)
|
|
content/l10n.js (l10n.js)
|
|
content/assert.js (assert.js)
|
|
content/addon.js (addon.js)
|
|
content/session.js (session.js)
|
|
content/transport.js (transport.js)
|
|
content/packets.js (packets.js)
|
|
content/stream-utils.js (stream-utils.js)
|
|
content/reftest.js (reftest.js)
|
|
content/reftest.xul (reftest.xul)
|
|
#ifdef ENABLE_TESTS
|
|
content/test.xul (chrome/test.xul)
|
|
content/test2.xul (chrome/test2.xul)
|
|
content/test_dialog.dtd (chrome/test_dialog.dtd)
|
|
content/test_dialog.properties (chrome/test_dialog.properties)
|
|
content/test_dialog.xul (chrome/test_dialog.xul)
|
|
content/test_nested_iframe.xul (chrome/test_nested_iframe.xul)
|
|
content/test_anonymous_content.xul (chrome/test_anonymous_content.xul)
|
|
#endif
|