Bug 1751076 - Fix downloads context menu delete file test. r=Gijs

The delete file menuitem in the downloads context menu no longer
removes the download list item on its own, so the test needs an
explicit cleanup callback to remove the download it creates.

Differential Revision: https://phabricator.services.mozilla.com/D136577
This commit is contained in:
Shane Hughes 2022-01-21 19:07:16 +00:00
parent 6a5c6e31bd
commit e3d27ff0d7

View File

@ -30,6 +30,10 @@ async function createDownloadFiles() {
});
}
registerCleanupFunction(async function() {
await task_resetState();
});
add_task(async function test_download_deleteFile() {
await SpecialPowers.pushPrefEnv({
set: [