From 8ef71c0f2bf47adc89c4ad8d612a379afbbbc93f Mon Sep 17 00:00:00 2001 From: "bugzilla%standard8.plus.com" Date: Sat, 3 May 2008 11:18:27 +0000 Subject: [PATCH] Bug 431159 test_history_expiration.js fails on builds without places enabled. r=sdwilsh, test only change --- .../downloads/test/unit/test_history_expiration.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toolkit/components/downloads/test/unit/test_history_expiration.js b/toolkit/components/downloads/test/unit/test_history_expiration.js index 950c02c2401..98e7edf9a27 100644 --- a/toolkit/components/downloads/test/unit/test_history_expiration.js +++ b/toolkit/components/downloads/test/unit/test_history_expiration.js @@ -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;