2008-05-28 11:25:28 -07:00
|
|
|
function run_test() {
|
2008-05-30 16:32:06 -07:00
|
|
|
Components.utils.import("resource://weave/log4moz.js");
|
2008-05-28 11:25:28 -07:00
|
|
|
Components.utils.import("resource://weave/faultTolerance.js");
|
|
|
|
|
|
|
|
// Just make sure the getter works and the service is a singleton.
|
|
|
|
FaultTolerance.Service._testProperty = "hi";
|
|
|
|
do_check_eq(FaultTolerance.Service._testProperty, "hi");
|
2008-05-30 16:32:06 -07:00
|
|
|
|
|
|
|
FaultTolerance.Service.init();
|
|
|
|
|
|
|
|
var log = Log4Moz.Service.rootLogger;
|
|
|
|
log.level = Log4Moz.Level.All;
|
|
|
|
log.info("Testing.");
|
2008-05-30 17:02:25 -07:00
|
|
|
do_check_eq(Log4Moz.Service.rootLogger.appenders.length, 1);
|
2008-05-28 11:25:28 -07:00
|
|
|
}
|