mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1137909 - part 3: fix browser_confirm_unblock_download.js to use correct enum values. r=paolo
This commit is contained in:
parent
854dc858fc
commit
680a3ae811
@ -33,14 +33,14 @@ function addDialogOpenObserver(buttonAction) {
|
||||
|
||||
add_task(function* test_confirm_unblock_dialog_unblock() {
|
||||
addDialogOpenObserver("cancel");
|
||||
let result = yield DownloadsCommon.confirmUnblockDownload(DownloadsCommon.UNBLOCK_MALWARE,
|
||||
let result = yield DownloadsCommon.confirmUnblockDownload(DownloadsCommon.BLOCK_VERDICT_MALWARE,
|
||||
window);
|
||||
ok(result, "Should return true when the user clicks on `Unblock` button.");
|
||||
});
|
||||
|
||||
add_task(function* test_confirm_unblock_dialog_keep_safe() {
|
||||
addDialogOpenObserver("accept");
|
||||
let result = yield DownloadsCommon.confirmUnblockDownload(DownloadsCommon.UNBLOCK_MALWARE,
|
||||
let result = yield DownloadsCommon.confirmUnblockDownload(DownloadsCommon.BLOCK_VERDICT_MALWARE,
|
||||
window);
|
||||
ok(!result, "Should return false when the user clicks on `Keep me safe` button.");
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user