Bug 1543725 - Add marionette support to Thunderbird, empty for now. r=rjl,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D27104
This commit is contained in:
Samuel Thibault 2019-06-03 19:42:29 +00:00
Родитель 371235b2dc
Коммит 0526032ff5
10 изменённых файлов: 95 добавлений и 1 удалений

Просмотреть файл

@ -1 +1,2 @@
comm.pth:comm/taskcluster
comm.pth:comm/testing/marionette

Просмотреть файл

@ -21,6 +21,6 @@ if CONFIG['MAKENSISU']:
if CONFIG['MOZ_BUNDLED_FONTS']:
DIRS += ['/%s/browser/fonts' % CONFIG['mozreltopsrcdir']]
TEST_DIRS += ['test/mozmill']
TEST_DIRS += ['test/mozmill', 'test/marionette']
FINAL_TARGET_FILES.defaults += ['app/permissions']

Просмотреть файл

@ -0,0 +1 @@
[test_empty.py]

Просмотреть файл

@ -0,0 +1,6 @@
# vim: set filetype=python:
# 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_UNIT_MANIFESTS += ['manifest.ini']

Просмотреть файл

@ -0,0 +1,12 @@
# 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/.
from __future__ import print_function
from marionette_harness import MarionetteTestCase
class TestMain(MarionetteTestCase):
def test_empty(self):
return

Просмотреть файл

@ -18,3 +18,4 @@ transforms:
jobs-from:
- tests.yml
- marionette.yml

Просмотреть файл

@ -0,0 +1,36 @@
job-defaults:
suite: marionette
mozharness:
script: marionette.py
config:
by-test-platform:
macosx.*:
- marionette/prod_config.py
- marionette/mac_taskcluster_config.py
windows.*:
- marionette/windows_taskcluster_config.py
default:
- marionette/prod_config.py
- remove_executables.py
extra-options:
- --application=thunderbird --test-manifest=../../../../../comm/testing/marionette/unit-tests.ini
run-on-projects: built-projects
marionette:
description: "Marionette unittest run"
treeherder-symbol: Mn
max-run-time: 5400
e10s: false
instance-size: default
chunks: 1
marionette-headless:
description: "Marionette headless unittest run"
treeherder-symbol: MnH
max-run-time: 5400
e10s: false
instance-size: default
mozharness:
extra-options:
- --headless

Просмотреть файл

@ -22,6 +22,8 @@
common-tests:
- xpcshell
- mozmill
- marionette
- marionette-headless
optimized-tests:
- mochitest-thunderbird

Просмотреть файл

@ -0,0 +1,33 @@
# 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/
# ALL CHANGES TO THIS FILE MUST HAVE REVIEW FROM A MARIONETTE PEER!
#
# The Marionette Python client is used out-of-tree with various builds of
# Firefox. Removing a preference from this file will cause regressions,
# so please be careful and get review from a Testing :: Marionette peer
# before you make any changes to this file.
from __future__ import absolute_import
thunderbird_prefs = {
# Disable application updates
"app.update.disabledForTesting": True,
# Enable output of dump()
"browser.dom.window.dump.enabled": True,
# Do not show the EULA notification which can interfer with tests
"browser.EULA.override": True,
# Do not start first-run items
"mail.provider.suppress_dialog_on_startup": True,
"mail.spotlight.firstRunDone": True,
"mail.winsearch.firstRunDone": True,
# Do not open start page
"mailnews.start_page.override_url": "about:blank",
"mailnews.start_page.url": "about:blank",
}

Просмотреть файл

@ -0,0 +1,2 @@
# mail tests
[include:../../mail/test/marionette/manifest.ini]