зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset b74e2721b7f0 (bug 1432508) for browser chrome failures on browser_ext_browserAction_theme_icons.js.CLOSED TREE
This commit is contained in:
Родитель
1cf1a83e5b
Коммит
403f66d911
|
@ -563,10 +563,6 @@
|
|||
"theme": {
|
||||
"$ref": "ThemeType"
|
||||
},
|
||||
"default_locale": {
|
||||
"type": "string",
|
||||
"optional": "true"
|
||||
},
|
||||
"icons": {
|
||||
"type": "object",
|
||||
"optional": true,
|
||||
|
@ -643,7 +639,7 @@
|
|||
},
|
||||
{
|
||||
"name": "details",
|
||||
"$ref": "ThemeType",
|
||||
"$ref": "manifest.ThemeType",
|
||||
"description": "The properties of the theme to update."
|
||||
}
|
||||
]
|
||||
|
|
|
@ -224,34 +224,3 @@ add_task(async function uninstall_offers_undo() {
|
|||
theme.uninstall();
|
||||
await promiseRestartManager();
|
||||
});
|
||||
|
||||
// Test that default_locale works with WE themes
|
||||
add_task(async function default_locale_themes() {
|
||||
let addon = await promiseInstallWebExtension({
|
||||
manifest: {
|
||||
default_locale: "en",
|
||||
name: "__MSG_name__",
|
||||
description: "__MSG_description__",
|
||||
theme: {
|
||||
"accentcolor": "black",
|
||||
"textcolor": "white",
|
||||
}
|
||||
},
|
||||
files: {
|
||||
"_locales/en/messages.json": `{
|
||||
"name": {
|
||||
"message": "the name"
|
||||
},
|
||||
"description": {
|
||||
"message": "the description"
|
||||
}
|
||||
}`
|
||||
}
|
||||
});
|
||||
|
||||
addon = await promiseAddonByID(addon.id);
|
||||
equal(addon.name, "the name");
|
||||
equal(addon.description, "the description");
|
||||
equal(addon.type, "theme");
|
||||
addon.uninstall();
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче