toolkit/mozapps/extensions/test/xpcshell/test_bug425657.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/toolkit/mozapps/extensions/test/xpcshell/test_bug425657.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 + */
     1.8 +
     1.9 +const ADDON = "test_bug425657";
    1.10 +const ID = "bug425657@tests.mozilla.org";
    1.11 +
    1.12 +function run_test()
    1.13 +{
    1.14 +  // Setup for test
    1.15 +  do_test_pending();
    1.16 +  createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1");
    1.17 +
    1.18 +  // Install test add-on
    1.19 +  startupManager();
    1.20 +  installAllFiles([do_get_addon(ADDON)], function() {
    1.21 +    restartManager();
    1.22 +    AddonManager.getAddonByID(ID, function(addon) {
    1.23 +      do_check_neq(addon, null);
    1.24 +      do_check_eq(addon.name, "Deutsches W\u00f6rterbuch");
    1.25 +      do_check_eq(addon.name.length, 20);
    1.26 +
    1.27 +      do_execute_soon(do_test_finished);
    1.28 +    });
    1.29 +  });
    1.30 +}

mercurial