/* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/
*/
add_task(async function setup() { // Setup for test
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "1.9.2");
await promiseStartupManager();
});
// Tests that the localized properties are visible before installation
add_task(async function test_1() {
await restartWithLocales(["fr-FR"]);
// Tests that the localized properties are visible after installation
add_task(async function test_2() {
let addon = await AddonManager.getAddonByID("addon1@tests.mozilla.org"); Assert.notEqual(addon, null);
// Test that the localized properties are still there when disabled.
add_task(async function test_3() {
let addon = await AddonManager.getAddonByID("addon1@tests.mozilla.org"); Assert.notEqual(addon, null); Assert.equal(addon.name, "fr-FR Name");
});
// Test that changing locale works
add_task(async function test_5() {
await restartWithLocales(["de-DE"]);
let addon = await AddonManager.getAddonByID("addon1@tests.mozilla.org"); Assert.notEqual(addon, null);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.