mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1486182: Follow-up: Fix ESLint error. r=eslint-fix,test-only
--HG-- extra : rebase_source : df6cfdcd41ec22079340a1f52ae7792df09384ca
This commit is contained in:
parent
5b13d58730
commit
b72957664f
@ -1,3 +1,4 @@
|
||||
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
|
||||
ChromeUtils.import("resource://testing-common/AppInfo.jsm", this);
|
||||
updateAppInfo({
|
||||
name: "XPCShell",
|
||||
@ -8,12 +9,9 @@ updateAppInfo({
|
||||
|
||||
registerManifests([do_get_file("data/test_abi.manifest")]);
|
||||
|
||||
const catman = Cc["@mozilla.org/categorymanager;1"].
|
||||
getService(Ci.nsICategoryManager);
|
||||
|
||||
function is_registered(name) {
|
||||
try {
|
||||
var d = catman.getCategoryEntry("abitest", name);
|
||||
var d = Services.catMan.getCategoryEntry("abitest", name);
|
||||
return d == "found";
|
||||
} catch (e) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user