services/sync/tests/unit/test_load_modules.js

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:6b1ce59c6926
1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
3
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 ];
35
36 const testingModules = [
37 "fakeservices.js",
38 "rotaryengine.js",
39 "utils.js",
40 "fxa_utils.js",
41 ];
42
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 }
49
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