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 11:18:27 +00:00
Родитель 2e47261781
Коммит 8ef71c0f2b
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -41,6 +41,11 @@
function run_test() 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"]. let dm = Cc["@mozilla.org/download-manager;1"].
getService(Ci.nsIDownloadManager); getService(Ci.nsIDownloadManager);
let db = dm.DBConnection; let db = dm.DBConnection;