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
Родитель f65bc1dc4f
Коммит 2585813c2e
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -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);

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

@ -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();