Bug 431130 xpcshell test test_nsIDownloadHistory.js fails on Thunderbird. r=sdwilsh

This commit is contained in:
Mark Banner 2008-07-17 15:04:27 +01:00
parent 380e9f593a
commit c975877210

View File

@ -74,6 +74,16 @@ var tests = [testLinkVistedObserver];
function run_test()
{
// Not everyone uses/defines an nsGlobalHistory* service. Especially if
// MOZ_PLACES is not defined. If getService fails, then abort gracefully.
try {
Cc["@mozilla.org/browser/global-history;2"].
getService(Ci.nsIGlobalHistory2);
}
catch (ex) {
return;
}
for (var i = 0; i < tests.length; i++)
tests[i]();