From db3a35cb7ddf6460ecb11d1dd58ac53026f15f73 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 3 Dec 2013 19:04:25 +0100 Subject: [PATCH] Bug 945828 - Work around bug 945756. r=luke --- .../components/jsdownloads/test/unit/test_DownloadList.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/toolkit/components/jsdownloads/test/unit/test_DownloadList.js b/toolkit/components/jsdownloads/test/unit/test_DownloadList.js index 536c6d2dd74..a3893b87473 100644 --- a/toolkit/components/jsdownloads/test/unit/test_DownloadList.js +++ b/toolkit/components/jsdownloads/test/unit/test_DownloadList.js @@ -362,9 +362,8 @@ add_task(function test_history_expiration() yield list.add(downloadTwo); // Force a history expiration. - let expire = Cc["@mozilla.org/places/expiration;1"] - .getService(Ci.nsIObserver); - expire.observe(null, "places-debug-start-expiration", -1); + Cc["@mozilla.org/places/expiration;1"] + .getService(Ci.nsIObserver).observe(null, "places-debug-start-expiration", -1); // Wait for both downloads to be removed. yield deferred.promise;