зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
23af28350d
Коммит
b618e9252c
|
@ -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();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче