services/common/tests/unit/test_load_modules.js

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* Any copyright is dedicated to the Public Domain.
     2  * http://creativecommons.org/publicdomain/zero/1.0/ */
     4 const modules = [
     5   "async.js",
     6   "bagheeraclient.js",
     7   "rest.js",
     8   "storageservice.js",
     9   "stringbundle.js",
    10   "tokenserverclient.js",
    11   "utils.js",
    12 ];
    14 const test_modules = [
    15   "bagheeraserver.js",
    16   "logging.js",
    17   "storageserver.js",
    18 ];
    20 function run_test() {
    21   for each (let m in modules) {
    22     let resource = "resource://services-common/" + m;
    23     Components.utils.import(resource, {});
    24   }
    26   for each (let m in test_modules) {
    27     let resource = "resource://testing-common/services-common/" + m;
    28     Components.utils.import(resource, {});
    29   }
    30 }

mercurial