gecko/services/healthreport/tests/xpcshell/test_load_modules.js
Gregory Szorc cf1a271733 Bug 834936 - Temporarily load JSMs into fewer compartments; r=rnewman
We concatenate JSMs together so we use less compartments and therefore
less memory. This is intended to be a temporary hack until the overhead
of compartments is less.
2013-01-27 11:26:48 -08:00

21 lines
452 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const modules = [
"healthreporter.jsm",
"profile.jsm",
"providers.jsm",
];
function run_test() {
for (let m of modules) {
let resource = "resource://gre/modules/services/healthreport/" + m;
Components.utils.import(resource, {});
}
Components.utils.import("resource://gre/modules/HealthReport.jsm", {});
}