services/sync/tests/unit/test_load_modules.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* Any copyright is dedicated to the Public Domain.
     2    http://creativecommons.org/publicdomain/zero/1.0/ */
     4 const modules = [
     5   "addonutils.js",
     6   "addonsreconciler.js",
     7   "browserid_identity.js",
     8   "constants.js",
     9   "engines/addons.js",
    10   "engines/bookmarks.js",
    11   "engines/clients.js",
    12   "engines/forms.js",
    13   "engines/history.js",
    14   "engines/passwords.js",
    15   "engines/prefs.js",
    16   "engines/tabs.js",
    17   "engines.js",
    18   "identity.js",
    19   "jpakeclient.js",
    20   "keys.js",
    21   "main.js",
    22   "notifications.js",
    23   "policies.js",
    24   "record.js",
    25   "resource.js",
    26   "rest.js",
    27   "service.js",
    28   "stages/cluster.js",
    29   "stages/declined.js",
    30   "stages/enginesync.js",
    31   "status.js",
    32   "userapi.js",
    33   "util.js",
    34 ];
    36 const testingModules = [
    37   "fakeservices.js",
    38   "rotaryengine.js",
    39   "utils.js",
    40   "fxa_utils.js",
    41 ];
    43 function run_test() {
    44   for (let m of modules) {
    45     let res = "resource://services-sync/" + m;
    46     _("Attempting to load " + res);
    47     Cu.import(res, {});
    48   }
    50   for (let m of testingModules) {
    51     let res = "resource://testing-common/services/sync/" + m;
    52     _("Attempting to load " + res);
    53     Cu.import(res, {});
    54   }
    55 }

mercurial