services/sync/tests/unit/test_load_modules.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/services/sync/tests/unit/test_load_modules.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +/* Any copyright is dedicated to the Public Domain.
     1.5 +   http://creativecommons.org/publicdomain/zero/1.0/ */
     1.6 +
     1.7 +const modules = [
     1.8 +  "addonutils.js",
     1.9 +  "addonsreconciler.js",
    1.10 +  "browserid_identity.js",
    1.11 +  "constants.js",
    1.12 +  "engines/addons.js",
    1.13 +  "engines/bookmarks.js",
    1.14 +  "engines/clients.js",
    1.15 +  "engines/forms.js",
    1.16 +  "engines/history.js",
    1.17 +  "engines/passwords.js",
    1.18 +  "engines/prefs.js",
    1.19 +  "engines/tabs.js",
    1.20 +  "engines.js",
    1.21 +  "identity.js",
    1.22 +  "jpakeclient.js",
    1.23 +  "keys.js",
    1.24 +  "main.js",
    1.25 +  "notifications.js",
    1.26 +  "policies.js",
    1.27 +  "record.js",
    1.28 +  "resource.js",
    1.29 +  "rest.js",
    1.30 +  "service.js",
    1.31 +  "stages/cluster.js",
    1.32 +  "stages/declined.js",
    1.33 +  "stages/enginesync.js",
    1.34 +  "status.js",
    1.35 +  "userapi.js",
    1.36 +  "util.js",
    1.37 +];
    1.38 +
    1.39 +const testingModules = [
    1.40 +  "fakeservices.js",
    1.41 +  "rotaryengine.js",
    1.42 +  "utils.js",
    1.43 +  "fxa_utils.js",
    1.44 +];
    1.45 +
    1.46 +function run_test() {
    1.47 +  for (let m of modules) {
    1.48 +    let res = "resource://services-sync/" + m;
    1.49 +    _("Attempting to load " + res);
    1.50 +    Cu.import(res, {});
    1.51 +  }
    1.52 +
    1.53 +  for (let m of testingModules) {
    1.54 +    let res = "resource://testing-common/services/sync/" + m;
    1.55 +    _("Attempting to load " + res);
    1.56 +    Cu.import(res, {});
    1.57 +  }
    1.58 +}

mercurial