mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
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:
parent
6a5c6e31bd
commit
e3d27ff0d7
@ -30,6 +30,10 @@ async function createDownloadFiles() {
|
||||
});
|
||||
}
|
||||
|
||||
registerCleanupFunction(async function() {
|
||||
await task_resetState();
|
||||
});
|
||||
|
||||
add_task(async function test_download_deleteFile() {
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [
|
||||
|
Loading…
Reference in New Issue
Block a user