From 2f483437e5e988a92603d0778ca4ec908acf14f9 Mon Sep 17 00:00:00 2001 From: Marco Bonardo Date: Fri, 16 Apr 2010 23:49:44 +0200 Subject: [PATCH] Bug 547334 - test_browserhistory.js should wait for clear history. a=dietrich --- toolkit/components/places/tests/unit/test_browserhistory.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toolkit/components/places/tests/unit/test_browserhistory.js b/toolkit/components/places/tests/unit/test_browserhistory.js index 7cf0429b742..1aa84fbed32 100644 --- a/toolkit/components/places/tests/unit/test_browserhistory.js +++ b/toolkit/components/places/tests/unit/test_browserhistory.js @@ -182,8 +182,10 @@ function run_test() { // remove annotation and bookmark annosvc.removePageAnnotation(deletedPages[bookmarkIndex], annoName); bmsvc.removeItem(bookmark); - bhist.removeAllPages(); + waitForClearHistory(continue_test); +} +function continue_test() { /** * removePagesByTimeframe * Remove all pages for a given timeframe.