gecko-dev/testing/mochitest/moz.build

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

213 строки
6.4 KiB
Plaintext
Исходник Обычный вид История

# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# 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/.
DIRS += [
"manifests",
"tests",
"ssltunnel",
"BrowserTestUtils",
]
XPI_NAME = "mochijar"
USE_EXTENSION_MANIFEST = True
FINAL_TARGET_FILES += [
"api.js",
"manifest.json",
"schema.json",
]
FINAL_TARGET_FILES.content += [
Bug 1597847, rename remaining misc xul files from within /view, /gfx, /extensions, and /testing to .xhtml format r=marionette-reviewers,bgrins,whimboo,gbrown Differential Revision: https://phabricator.services.mozilla.com/D54035 --HG-- rename : extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul => extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xhtml rename : gfx/tests/crashtests/593526.xul => gfx/tests/crashtests/593526.xhtml rename : testing/marionette/chrome/test.xul => testing/marionette/chrome/test.xhtml rename : testing/marionette/chrome/test2.xul => testing/marionette/chrome/test2.xhtml rename : testing/marionette/chrome/test_dialog.xul => testing/marionette/chrome/test_dialog.xhtml rename : testing/marionette/chrome/test_nested_iframe.xul => testing/marionette/chrome/test_nested_iframe.xhtml rename : testing/marionette/reftest.xul => testing/marionette/reftest.xhtml rename : testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xul => testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xhtml rename : testing/mochitest/browser-harness.xul => testing/mochitest/browser-harness.xhtml rename : testing/mochitest/chrome/test_chromeGetTestFile.xul => testing/mochitest/chrome/test_chromeGetTestFile.xhtml rename : testing/mochitest/chrome/test_sample.xul => testing/mochitest/chrome/test_sample.xhtml rename : testing/mochitest/chrome/test_sanityEventUtils.xul => testing/mochitest/chrome/test_sanityEventUtils.xhtml rename : testing/mochitest/chrome/test_sanityException.xul => testing/mochitest/chrome/test_sanityException.xhtml rename : testing/mochitest/chrome/test_sanityException2.xul => testing/mochitest/chrome/test_sanityException2.xhtml rename : testing/mochitest/chrome/test_sanityManifest.xul => testing/mochitest/chrome/test_sanityManifest.xhtml rename : testing/mochitest/chrome/test_sanityManifest_pf.xul => testing/mochitest/chrome/test_sanityManifest_pf.xhtml rename : testing/mochitest/chrome/test_tasks_skip.xul => testing/mochitest/chrome/test_tasks_skip.xhtml rename : testing/mochitest/chrome/test_tasks_skipall.xul => testing/mochitest/chrome/test_tasks_skipall.xhtml rename : testing/mochitest/harness.xul => testing/mochitest/harness.xhtml rename : testing/talos/talos/pageloader/chrome/pageloader.xul => testing/talos/talos/pageloader/chrome/pageloader.xhtml rename : view/crashtests/382756-1.xul => view/crashtests/382756-1.xhtml rename : view/crashtests/38589-1.xul => view/crashtests/38589-1.xhtml extra : moz-landing-system : lando
2019-12-02 22:16:22 +03:00
"browser-harness.xhtml",
"browser-test.js",
"chrome-harness.js",
"chunkifyTests.js",
Bug 1597847, rename remaining misc xul files from within /view, /gfx, /extensions, and /testing to .xhtml format r=marionette-reviewers,bgrins,whimboo,gbrown Differential Revision: https://phabricator.services.mozilla.com/D54035 --HG-- rename : extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul => extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xhtml rename : gfx/tests/crashtests/593526.xul => gfx/tests/crashtests/593526.xhtml rename : testing/marionette/chrome/test.xul => testing/marionette/chrome/test.xhtml rename : testing/marionette/chrome/test2.xul => testing/marionette/chrome/test2.xhtml rename : testing/marionette/chrome/test_dialog.xul => testing/marionette/chrome/test_dialog.xhtml rename : testing/marionette/chrome/test_nested_iframe.xul => testing/marionette/chrome/test_nested_iframe.xhtml rename : testing/marionette/reftest.xul => testing/marionette/reftest.xhtml rename : testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xul => testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xhtml rename : testing/mochitest/browser-harness.xul => testing/mochitest/browser-harness.xhtml rename : testing/mochitest/chrome/test_chromeGetTestFile.xul => testing/mochitest/chrome/test_chromeGetTestFile.xhtml rename : testing/mochitest/chrome/test_sample.xul => testing/mochitest/chrome/test_sample.xhtml rename : testing/mochitest/chrome/test_sanityEventUtils.xul => testing/mochitest/chrome/test_sanityEventUtils.xhtml rename : testing/mochitest/chrome/test_sanityException.xul => testing/mochitest/chrome/test_sanityException.xhtml rename : testing/mochitest/chrome/test_sanityException2.xul => testing/mochitest/chrome/test_sanityException2.xhtml rename : testing/mochitest/chrome/test_sanityManifest.xul => testing/mochitest/chrome/test_sanityManifest.xhtml rename : testing/mochitest/chrome/test_sanityManifest_pf.xul => testing/mochitest/chrome/test_sanityManifest_pf.xhtml rename : testing/mochitest/chrome/test_tasks_skip.xul => testing/mochitest/chrome/test_tasks_skip.xhtml rename : testing/mochitest/chrome/test_tasks_skipall.xul => testing/mochitest/chrome/test_tasks_skipall.xhtml rename : testing/mochitest/harness.xul => testing/mochitest/harness.xhtml rename : testing/talos/talos/pageloader/chrome/pageloader.xul => testing/talos/talos/pageloader/chrome/pageloader.xhtml rename : view/crashtests/382756-1.xul => view/crashtests/382756-1.xhtml rename : view/crashtests/38589-1.xul => view/crashtests/38589-1.xhtml extra : moz-landing-system : lando
2019-12-02 22:16:22 +03:00
"harness.xhtml",
"manifestLibrary.js",
"mochitest-e10s-utils.js",
"redirect.html",
"server.js",
"shutdown-leaks-collector.js",
"ShutdownLeaksCollector.jsm",
]
FINAL_TARGET_FILES.content.dynamic += [
"dynamic/getMyDirectory.sjs",
]
FINAL_TARGET_FILES.content.static += [
"static/harness.css",
]
FINAL_TARGET_FILES.content.tests.SimpleTest += [
"../../docshell/test/chrome/docshell_helpers.js",
"../modules/StructuredLog.jsm",
"tests/SimpleTest/AccessibilityUtils.js",
"tests/SimpleTest/EventUtils.js",
"tests/SimpleTest/ExtensionTestUtils.js",
"tests/SimpleTest/iframe-between-tests.html",
"tests/SimpleTest/LogController.js",
"tests/SimpleTest/MemoryStats.js",
"tests/SimpleTest/MockObjects.js",
"tests/SimpleTest/MozillaLogger.js",
"tests/SimpleTest/NativeKeyCodes.js",
"tests/SimpleTest/paint_listener.js",
"tests/SimpleTest/setup.js",
"tests/SimpleTest/SimpleTest.js",
"tests/SimpleTest/test.css",
"tests/SimpleTest/TestRunner.js",
"tests/SimpleTest/WindowSnapshot.js",
"tests/SimpleTest/WorkerHandler.js",
"tests/SimpleTest/WorkerSimpleTest.js",
]
FINAL_TARGET_FILES.content.tests.BrowserTestUtils += [
"BrowserTestUtils/content/content-about-page-utils.js",
"BrowserTestUtils/content/content-task.js",
]
MOCHITEST_MANIFESTS += [
"baselinecoverage/plain/mochitest.ini",
"tests/MochiKit-1.4.2/tests/mochitest.ini",
]
MOCHITEST_CHROME_MANIFESTS += [
"baselinecoverage/chrome/chrome.ini",
"chrome/chrome.ini",
]
BROWSER_CHROME_MANIFESTS += ["baselinecoverage/browser_chrome/browser.ini"]
TEST_HARNESS_FILES.testing.mochitest += [
"/build/pgo/server-locations.txt",
"/build/valgrind/cross-architecture.sup",
"/build/valgrind/i386-pc-linux-gnu.sup",
"/build/valgrind/x86_64-pc-linux-gnu.sup",
"/netwerk/test/httpserver/httpd.js",
"bisection.py",
Bug 1597847, rename remaining misc xul files from within /view, /gfx, /extensions, and /testing to .xhtml format r=marionette-reviewers,bgrins,whimboo,gbrown Differential Revision: https://phabricator.services.mozilla.com/D54035 --HG-- rename : extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul => extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xhtml rename : gfx/tests/crashtests/593526.xul => gfx/tests/crashtests/593526.xhtml rename : testing/marionette/chrome/test.xul => testing/marionette/chrome/test.xhtml rename : testing/marionette/chrome/test2.xul => testing/marionette/chrome/test2.xhtml rename : testing/marionette/chrome/test_dialog.xul => testing/marionette/chrome/test_dialog.xhtml rename : testing/marionette/chrome/test_nested_iframe.xul => testing/marionette/chrome/test_nested_iframe.xhtml rename : testing/marionette/reftest.xul => testing/marionette/reftest.xhtml rename : testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xul => testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xhtml rename : testing/mochitest/browser-harness.xul => testing/mochitest/browser-harness.xhtml rename : testing/mochitest/chrome/test_chromeGetTestFile.xul => testing/mochitest/chrome/test_chromeGetTestFile.xhtml rename : testing/mochitest/chrome/test_sample.xul => testing/mochitest/chrome/test_sample.xhtml rename : testing/mochitest/chrome/test_sanityEventUtils.xul => testing/mochitest/chrome/test_sanityEventUtils.xhtml rename : testing/mochitest/chrome/test_sanityException.xul => testing/mochitest/chrome/test_sanityException.xhtml rename : testing/mochitest/chrome/test_sanityException2.xul => testing/mochitest/chrome/test_sanityException2.xhtml rename : testing/mochitest/chrome/test_sanityManifest.xul => testing/mochitest/chrome/test_sanityManifest.xhtml rename : testing/mochitest/chrome/test_sanityManifest_pf.xul => testing/mochitest/chrome/test_sanityManifest_pf.xhtml rename : testing/mochitest/chrome/test_tasks_skip.xul => testing/mochitest/chrome/test_tasks_skip.xhtml rename : testing/mochitest/chrome/test_tasks_skipall.xul => testing/mochitest/chrome/test_tasks_skipall.xhtml rename : testing/mochitest/harness.xul => testing/mochitest/harness.xhtml rename : testing/talos/talos/pageloader/chrome/pageloader.xul => testing/talos/talos/pageloader/chrome/pageloader.xhtml rename : view/crashtests/382756-1.xul => view/crashtests/382756-1.xhtml rename : view/crashtests/38589-1.xul => view/crashtests/38589-1.xhtml extra : moz-landing-system : lando
2019-12-02 22:16:22 +03:00
"browser-harness.xhtml",
"browser-test.js",
"chrome-harness.js",
"chunkifyTests.js",
"document-builder.sjs",
Bug 1453751: Load favicons in the content process. r=mak, r=gijs, r=aswan, r=mixedpuppy Summary: This moves the load of favicons into the content process. We use the same logic for finding favicons (based on waiting until none have shown up for a short time) but then load the favicon and convert it to a data uri which we then dispatch to the parent process. Along the way this fixes asssociating the load with the tab for WebExtension and devtools, fixes CSP usage for the load, fixes expiry detection of the favicon and stops us from loading the same resource twice. This change also merges the prefs browser.chrome.site_icons and browser.chrome.favicons leaving just the former controlling favicon loading. It adds the pref browser.chrome.guess_favicon to allow disabling guessing where a favicon might be located for a site (at <hostname>/favicon.ico). This is mainly to allow disabling this in tests where those additional yet automatic requests are uninteresting for the test. There are multiple clean-ups that can follow this but this is a first step along that path. MozReview-Commit-ID: E0Cs59UnxaF Reviewers: mak Tags: #secure-revision Bug #: 1453751 Differential Revision: https://phabricator.services.mozilla.com/D1672 Differential Revision: https://phabricator.services.mozilla.com/D1673 Differential Revision: https://phabricator.services.mozilla.com/D1674 Differential Revision: https://phabricator.services.mozilla.com/D1850 Differential Revision: https://phabricator.services.mozilla.com/D1869 --HG-- rename : browser/base/content/test/general/browser_bug408415.js => browser/base/content/test/favicons/browser_bug408415.js rename : browser/base/content/test/general/browser_bug550565.js => browser/base/content/test/favicons/browser_bug550565.js rename : browser/base/content/test/general/browser_favicon_change.js => browser/base/content/test/favicons/browser_favicon_change.js rename : browser/base/content/test/general/browser_favicon_change_not_in_document.js => browser/base/content/test/favicons/browser_favicon_change_not_in_document.js rename : browser/base/content/test/general/browser_subframe_favicons_not_used.js => browser/base/content/test/favicons/browser_subframe_favicons_not_used.js rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon1.ico rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_bug970276_favicon2.ico rename : browser/base/content/test/general/file_bug970276_popup1.html => browser/base/content/test/favicons/file_bug970276_popup1.html rename : browser/base/content/test/general/file_bug970276_popup2.html => browser/base/content/test/favicons/file_bug970276_popup2.html rename : browser/base/content/test/general/file_favicon_change.html => browser/base/content/test/favicons/file_favicon_change.html rename : browser/base/content/test/general/file_favicon_change_not_in_document.html => browser/base/content/test/favicons/file_favicon_change_not_in_document.html rename : browser/base/content/test/general/file_bug970276_favicon1.ico => browser/base/content/test/favicons/file_generic_favicon.ico rename : browser/base/content/test/general/file_with_favicon.html => browser/base/content/test/favicons/file_with_favicon.html extra : rebase_source : 6372b2681a59d267f966e9fa2ca9a54e3ff0cea0 extra : intermediate-source : b11aa832c41ac5beef9065f804d11fb7c9887990 extra : source : 638eb8a41245f6d9932861afda21edd5e0b2618a
2018-06-29 02:06:09 +03:00
"favicon.ico",
Bug 1597847, rename remaining misc xul files from within /view, /gfx, /extensions, and /testing to .xhtml format r=marionette-reviewers,bgrins,whimboo,gbrown Differential Revision: https://phabricator.services.mozilla.com/D54035 --HG-- rename : extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xul => extensions/spellcheck/tests/chrome/test_add_remove_dictionaries.xhtml rename : gfx/tests/crashtests/593526.xul => gfx/tests/crashtests/593526.xhtml rename : testing/marionette/chrome/test.xul => testing/marionette/chrome/test.xhtml rename : testing/marionette/chrome/test2.xul => testing/marionette/chrome/test2.xhtml rename : testing/marionette/chrome/test_dialog.xul => testing/marionette/chrome/test_dialog.xhtml rename : testing/marionette/chrome/test_nested_iframe.xul => testing/marionette/chrome/test_nested_iframe.xhtml rename : testing/marionette/reftest.xul => testing/marionette/reftest.xhtml rename : testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xul => testing/mochitest/baselinecoverage/chrome/test_baselinecoverage.xhtml rename : testing/mochitest/browser-harness.xul => testing/mochitest/browser-harness.xhtml rename : testing/mochitest/chrome/test_chromeGetTestFile.xul => testing/mochitest/chrome/test_chromeGetTestFile.xhtml rename : testing/mochitest/chrome/test_sample.xul => testing/mochitest/chrome/test_sample.xhtml rename : testing/mochitest/chrome/test_sanityEventUtils.xul => testing/mochitest/chrome/test_sanityEventUtils.xhtml rename : testing/mochitest/chrome/test_sanityException.xul => testing/mochitest/chrome/test_sanityException.xhtml rename : testing/mochitest/chrome/test_sanityException2.xul => testing/mochitest/chrome/test_sanityException2.xhtml rename : testing/mochitest/chrome/test_sanityManifest.xul => testing/mochitest/chrome/test_sanityManifest.xhtml rename : testing/mochitest/chrome/test_sanityManifest_pf.xul => testing/mochitest/chrome/test_sanityManifest_pf.xhtml rename : testing/mochitest/chrome/test_tasks_skip.xul => testing/mochitest/chrome/test_tasks_skip.xhtml rename : testing/mochitest/chrome/test_tasks_skipall.xul => testing/mochitest/chrome/test_tasks_skipall.xhtml rename : testing/mochitest/harness.xul => testing/mochitest/harness.xhtml rename : testing/talos/talos/pageloader/chrome/pageloader.xul => testing/talos/talos/pageloader/chrome/pageloader.xhtml rename : view/crashtests/382756-1.xul => view/crashtests/382756-1.xhtml rename : view/crashtests/38589-1.xul => view/crashtests/38589-1.xhtml extra : moz-landing-system : lando
2019-12-02 22:16:22 +03:00
"harness.xhtml",
"leaks.py",
"mach_test_package_commands.py",
"manifest.webapp",
"manifestLibrary.js",
"mochitest_options.py",
"pywebsocket_wrapper.py",
"redirect.html",
"runjunit.py",
"runtests.py",
"runtestsremote.py",
"server.js",
"start_desktop.js",
]
TEST_HARNESS_FILES.testing.mochitest.embed += [
"embed/Xm5i5kbIXzc",
"embed/Xm5i5kbIXzc^headers^",
]
TEST_HARNESS_FILES.testing.mochitest.pywebsocket3.mod_pywebsocket += [
"pywebsocket3/mod_pywebsocket/__init__.py",
"pywebsocket3/mod_pywebsocket/_stream_exceptions.py",
"pywebsocket3/mod_pywebsocket/common.py",
"pywebsocket3/mod_pywebsocket/dispatch.py",
"pywebsocket3/mod_pywebsocket/extensions.py",
"pywebsocket3/mod_pywebsocket/fast_masking.i",
"pywebsocket3/mod_pywebsocket/http_header_util.py",
"pywebsocket3/mod_pywebsocket/memorizingfile.py",
"pywebsocket3/mod_pywebsocket/msgutil.py",
"pywebsocket3/mod_pywebsocket/request_handler.py",
"pywebsocket3/mod_pywebsocket/server_util.py",
"pywebsocket3/mod_pywebsocket/standalone.py",
"pywebsocket3/mod_pywebsocket/stream.py",
"pywebsocket3/mod_pywebsocket/util.py",
"pywebsocket3/mod_pywebsocket/websocket_server.py",
]
TEST_HARNESS_FILES.testing.mochitest.pywebsocket3.mod_pywebsocket.handshake += [
"pywebsocket3/mod_pywebsocket/handshake/__init__.py",
"pywebsocket3/mod_pywebsocket/handshake/_base.py",
"pywebsocket3/mod_pywebsocket/handshake/hybi.py",
]
TEST_HARNESS_FILES.testing.mochitest.dynamic += [
"dynamic/getMyDirectory.sjs",
]
TEST_HARNESS_FILES.testing.mochitest.static += [
"static/harness.css",
]
TEST_HARNESS_FILES.testing.mochitest.MochiKit += [
"MochiKit/__package__.js",
"MochiKit/Async.js",
"MochiKit/Base.js",
"MochiKit/Color.js",
"MochiKit/Controls.js",
"MochiKit/DateTime.js",
"MochiKit/DOM.js",
"MochiKit/DragAndDrop.js",
"MochiKit/Format.js",
"MochiKit/Iter.js",
"MochiKit/Logging.js",
"MochiKit/LoggingPane.js",
"MochiKit/MochiKit.js",
"MochiKit/MockDOM.js",
"MochiKit/New.js",
"MochiKit/Signal.js",
"MochiKit/Sortable.js",
"MochiKit/Style.js",
"MochiKit/Test.js",
"MochiKit/Visual.js",
]
TEST_HARNESS_FILES.testing.mochitest.tests.testing.mochitest.tests[
"MochiKit-1.4.2"
].MochiKit += [
"tests/MochiKit-1.4.2/MochiKit/Async.js",
"tests/MochiKit-1.4.2/MochiKit/Base.js",
"tests/MochiKit-1.4.2/MochiKit/Color.js",
"tests/MochiKit-1.4.2/MochiKit/DateTime.js",
"tests/MochiKit-1.4.2/MochiKit/DOM.js",
"tests/MochiKit-1.4.2/MochiKit/DragAndDrop.js",
"tests/MochiKit-1.4.2/MochiKit/Format.js",
"tests/MochiKit-1.4.2/MochiKit/Iter.js",
"tests/MochiKit-1.4.2/MochiKit/Logging.js",
"tests/MochiKit-1.4.2/MochiKit/LoggingPane.js",
"tests/MochiKit-1.4.2/MochiKit/MochiKit.js",
"tests/MochiKit-1.4.2/MochiKit/MockDOM.js",
"tests/MochiKit-1.4.2/MochiKit/Position.js",
"tests/MochiKit-1.4.2/MochiKit/Selector.js",
"tests/MochiKit-1.4.2/MochiKit/Signal.js",
"tests/MochiKit-1.4.2/MochiKit/Sortable.js",
"tests/MochiKit-1.4.2/MochiKit/Style.js",
"tests/MochiKit-1.4.2/MochiKit/Test.js",
"tests/MochiKit-1.4.2/MochiKit/Visual.js",
]
TEST_HARNESS_FILES.testing.mochitest.iceserver += [
"/testing/tools/iceserver/iceserver.py",
]
TEST_HARNESS_FILES.testing.mochitest.websocketprocessbridge += [
"/testing/tools/websocketprocessbridge/websocketprocessbridge.py",
"/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements.txt",
"/testing/tools/websocketprocessbridge/websocketprocessbridge_requirements_3.txt",
]
with Files("**"):
BUG_COMPONENT = ("Testing", "Mochitest")
SCHEDULES.exclusive = ["mochitest"]
with Files("*remote*"):
BUG_COMPONENT = ("GeckoView", "General")