mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 520165 - Part11: Fix download manager tests dependancies, r=sdwilsh
This commit is contained in:
parent
54fa20b6ee
commit
a47d07b775
@ -121,9 +121,11 @@ function run_test()
|
||||
// Set expiration stuff to 0 to make the download expire
|
||||
let prefs = Cc["@mozilla.org/preferences-service;1"].
|
||||
getService(Ci.nsIPrefBranch);
|
||||
prefs.setIntPref("browser.history_expire_sites", 0);
|
||||
prefs.setIntPref("browser.history_expire_days_min", 0);
|
||||
prefs.setIntPref("browser.history_expire_days", 0);
|
||||
prefs.setIntPref("places.history.expiration.max_pages", 0);
|
||||
|
||||
// Force a history expiration.
|
||||
let expire = Cc["@mozilla.org/places/expiration;1"].getService(Ci.nsIObserver);
|
||||
expire.observe(null, "places-debug-start-expiration", null);
|
||||
|
||||
// Expiration happens on a timeout, about 3.5s after we set the pref
|
||||
do_test_pending();
|
||||
|
Loading…
Reference in New Issue
Block a user