зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1695963 - Rename 'Default' theme to 'System setting'. r=flod,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D111759
This commit is contained in:
Родитель
b339a09859
Коммит
7062a3faa0
|
@ -125,10 +125,18 @@ add_task(async function test_management_themes() {
|
|||
"Simple theme test",
|
||||
"webextension theme installed"
|
||||
);
|
||||
is(await extension.awaitMessage("onDisabled"), "Default", "default disabled");
|
||||
is(
|
||||
await extension.awaitMessage("onDisabled"),
|
||||
"System theme",
|
||||
"default disabled"
|
||||
);
|
||||
|
||||
extension.sendMessage("test");
|
||||
is(await extension.awaitMessage("onEnabled"), "Default", "default enabled");
|
||||
is(
|
||||
await extension.awaitMessage("onEnabled"),
|
||||
"System theme",
|
||||
"default enabled"
|
||||
);
|
||||
is(
|
||||
await extension.awaitMessage("onDisabled"),
|
||||
"Simple theme test",
|
||||
|
@ -139,11 +147,19 @@ add_task(async function test_management_themes() {
|
|||
"Simple theme test",
|
||||
"addon enabled"
|
||||
);
|
||||
is(await extension.awaitMessage("onDisabled"), "Default", "default disabled");
|
||||
is(
|
||||
await extension.awaitMessage("onDisabled"),
|
||||
"System theme",
|
||||
"default disabled"
|
||||
);
|
||||
await extension.awaitMessage("done");
|
||||
|
||||
await Promise.all([theme.unload(), extension.awaitMessage("onUninstalled")]);
|
||||
|
||||
is(await extension.awaitMessage("onEnabled"), "Default", "default enabled");
|
||||
is(
|
||||
await extension.awaitMessage("onEnabled"),
|
||||
"System theme",
|
||||
"default enabled"
|
||||
);
|
||||
await extension.unload();
|
||||
});
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# LOCALIZATION NOTE (extension.default-theme@mozilla.org.name, extension.default-theme@mozilla.org.description): This is displayed in about:addons -> Appearance
|
||||
extension.default-theme@mozilla.org.name=Default
|
||||
extension.default-theme@mozilla.org.description=A theme with the operating system color scheme.
|
||||
extension.default-theme@mozilla.org.name=System theme
|
||||
extension.default-theme@mozilla.org.description=Follow the operating system setting for buttons, menus, and windows.
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
}
|
||||
},
|
||||
|
||||
"name": "Default",
|
||||
"description": "A theme with the operating system color scheme.",
|
||||
"name": "System theme",
|
||||
"description": "Follow the operating system setting for buttons, menus, and windows.",
|
||||
"author": "Mozilla",
|
||||
"version": "1.1",
|
||||
"version": "1.2",
|
||||
|
||||
"icons": {"32": "icon.svg"},
|
||||
|
||||
|
|
|
@ -2473,7 +2473,7 @@ var XPIProvider = {
|
|||
|
||||
this.maybeInstallBuiltinAddon(
|
||||
"default-theme@mozilla.org",
|
||||
"1.1",
|
||||
"1.2",
|
||||
"resource://default-theme/"
|
||||
);
|
||||
|
||||
|
|
|
@ -722,7 +722,7 @@ add_task(async function testDefaultTheme() {
|
|||
// Version.
|
||||
let version = rows.shift();
|
||||
checkLabel(version, "version");
|
||||
is(version.lastChild.textContent, "1.1", "It's always version 1.1");
|
||||
is(version.lastChild.textContent, "1.2", "It's always version 1.2");
|
||||
|
||||
// Last updated.
|
||||
let lastUpdated = rows.shift();
|
||||
|
|
Загрузка…
Ссылка в новой задаче