mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-06 04:35:04 +00:00
41c023ef42
This change adds a new mochitest-only helper called `AppTestDelegate`. This helper will provide primitives that are not normally available at the toolkit level. Each app can implement the `AppUiTestDelegate` API to provide the primitives. This is done so that we can ensure compatibility of the Extension API across implementations. The initial set of APIs is as follows: ``` class TestDelegate { clickPageAction(window, extensionId); closePageAction(window, extensionId); clickBrowserAction(window, extensionId); closeBrowserAction(window, extensionId); awaitExtensionPanel(window, extensionId); // Returns a unique identifier for the tab openNewForegroundTab(window, url, waitForLoad); // tabId must be the identifier from openNewForegroundTab removeTab(tabId); } ``` Differential Revision: https://phabricator.services.mozilla.com/D99170
38 lines
1.0 KiB
Python
38 lines
1.0 KiB
Python
# -*- 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/.
|
|
|
|
XPI_NAME = "specialpowers"
|
|
|
|
USE_EXTENSION_MANIFEST = True
|
|
|
|
FINAL_TARGET_FILES += [
|
|
"api.js",
|
|
"manifest.json",
|
|
"schema.json",
|
|
]
|
|
|
|
FINAL_TARGET_FILES.content += [
|
|
"../modules/Assert.jsm",
|
|
"content/AppTestDelegate.jsm",
|
|
"content/AppTestDelegateChild.jsm",
|
|
"content/AppTestDelegateParent.jsm",
|
|
"content/MockColorPicker.jsm",
|
|
"content/MockFilePicker.jsm",
|
|
"content/MockPermissionPrompt.jsm",
|
|
"content/SpecialPowersChild.jsm",
|
|
"content/SpecialPowersEventUtils.jsm",
|
|
"content/SpecialPowersParent.jsm",
|
|
"content/SpecialPowersSandbox.jsm",
|
|
"content/WrapPrivileged.jsm",
|
|
]
|
|
|
|
TESTING_JS_MODULES += [
|
|
"content/MockFilePicker.jsm",
|
|
]
|
|
|
|
with Files("**"):
|
|
BUG_COMPONENT = ("Testing", "Mochitest")
|