зеркало из https://github.com/mozilla/pjs.git
Bug 660619 - Silence a warning during tests; r=ddahl,gavin.sharp
This commit is contained in:
Родитель
36241cc657
Коммит
5315f31af7
|
@ -40,19 +40,10 @@ const Cc = Components.classes;
|
|||
const Ci = Components.interfaces;
|
||||
const Cu = Components.utils;
|
||||
|
||||
Cu.import("resource://gre/modules/HUDService.jsm");
|
||||
Cu.import("resource://gre/modules/Services.jsm");
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
|
||||
XPCOMUtils.defineLazyGetter(this, "HUDService", function () {
|
||||
Cu.import("resource:///modules/HUDService.jsm");
|
||||
try {
|
||||
return HUDService;
|
||||
}
|
||||
catch (ex) {
|
||||
dump(ex + "\n");
|
||||
}
|
||||
});
|
||||
|
||||
function log(aMsg)
|
||||
{
|
||||
dump("*** WebConsoleTest: " + aMsg + "\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче