Bug 431159 test_history_expiration.js fails on builds without places enabled. r=sdwilsh, test only change

This commit is contained in:
bugzilla@standard8.plus.com 2008-05-03 04:18:27 -07:00
parent b47bc28082
commit 267192a1a4

View File

@ -41,6 +41,11 @@
function run_test()
{
// Like the code, we check to see if nav-history-service exists
// (i.e MOZ_PLACES is enabled), so that we don't run this test if it doesn't.
if (!("@mozilla.org/browser/nav-history-service;1" in Cc))
return;
let dm = Cc["@mozilla.org/download-manager;1"].
getService(Ci.nsIDownloadManager);
let db = dm.DBConnection;