1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/chrome/test/unit/head_crtestutils.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +const XULAPPINFO_CONTRACTID = "@mozilla.org/xre/app-info;1"; 1.5 +const XULAPPINFO_CID = Components.ID("{4ba645d3-be6f-40d6-a42a-01b2f40091b8}"); 1.6 + 1.7 +const Cc = Components.classes; 1.8 +const Ci = Components.interfaces; 1.9 +const Cr = Components.results; 1.10 + 1.11 + 1.12 +function registerManifests(manifests) 1.13 +{ 1.14 + var reg = Components.manager.QueryInterface(Ci.nsIComponentRegistrar); 1.15 + for each (var manifest in manifests) 1.16 + reg.autoRegister(manifest); 1.17 +}