mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 706280 - Intermittent failure in browser/components/places/tests/chrome/test_bug549192.xul | Exited with code 1 during test run.
r=felipe a=tests-only
This commit is contained in:
parent
83ff99096f
commit
632b40fdbb
@ -144,11 +144,7 @@ function endTest() {
|
|||||||
.getMostRecentWindow("Download:Manager")
|
.getMostRecentWindow("Download:Manager")
|
||||||
.close();
|
.close();
|
||||||
|
|
||||||
Cc["@mozilla.org/browser/nav-history-service;1"]
|
waitForClearHistory(SimpleTest.finish);
|
||||||
.getService(Ci.nsINavHistoryService)
|
|
||||||
.removeAllPages();
|
|
||||||
|
|
||||||
SimpleTest.finish();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]]>
|
]]>
|
||||||
|
@ -168,3 +168,16 @@ function setCleanState()
|
|||||||
let win = getDMWindow();
|
let win = getDMWindow();
|
||||||
if (win) win.close();
|
if (win) win.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears history invoking callback when done.
|
||||||
|
*/
|
||||||
|
function waitForClearHistory(aCallback) {
|
||||||
|
Components.utils.import("resource://gre/modules/PlacesUtils.jsm");
|
||||||
|
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||||
|
Services.obs.addObserver(function observeClearHistory(aSubject, aTopic) {
|
||||||
|
Services.obs.removeObserver(observeClearHistory, aTopic);
|
||||||
|
aCallback();
|
||||||
|
}, PlacesUtils.TOPIC_EXPIRATION_FINISHED, false);
|
||||||
|
PlacesUtils.bhistory.removeAllPages();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user