Bug 602085 - followup: some tinderboxes are permanently idle, try to fix frecency tests that rely on idle-daily. a=orange

This commit is contained in:
Marco Bonardo 2010-10-08 14:18:54 +02:00
parent 8fe5adf346
commit 424154655a
2 changed files with 8 additions and 0 deletions

View File

@ -138,6 +138,10 @@ function run_test()
{
do_test_pending();
// Since we are checking frecency, we have to disable some stuff that could
// change values during test run. On idle-daily frecencies are updated.
Services.obs.removeObserver(PlacesUtils.history, "idle-daily");
// Set the preference for the timer to a really large value, so it won't
// run before the test finishes.
prefs.setIntPref(PREF_SYNC_INTERVAL, SYNC_INTERVAL);

View File

@ -237,6 +237,10 @@ os.addObserver(syncObserver, kSyncFinished, false);
// main
function run_test() {
// Since we are checking frecency, we have to disable some stuff that could
// change values during test run. On idle-daily frecencies are updated.
Services.obs.removeObserver(PlacesUtils.history, "idle-daily");
// Add a livemark with a visited and an unvisited child
add_fake_livemark();