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