Files
firefox/toolkit/mozapps/update/tests/browser/browser_updatesPartialPatchApplyFailureWithCompleteAvailable.js
T
Robert Strong d05a99a232 Bug 1372523 - Update tests for the removal of the isSecurityUpdate, showNeverForVersion, and showPrompt attributes from nsIUpdate. r=mhowell
Converts the test functions getLocalPatchString, getLocalUpdateString, getRemotePatchString, and getRemoteUpdateString to use an object as a param.
2017-06-14 16:18:42 -07:00

21 lines
661 B
JavaScript

add_task(async function testPartialPatchApplyFailureWithCompleteAvailable() {
let patchProps = {type: "partial",
state: STATE_PENDING};
let patches = getLocalPatchString(patchProps);
patchProps = {selected: "false"};
patches += getLocalPatchString(patchProps);
let updateProps = {isCompleteUpdate: "false",
promptWaitTime: "0"};
let updates = getLocalUpdateString(updateProps, patches);
await runUpdateProcessingTest(updates, [
{
notificationId: "update-restart",
button: "secondarybutton",
cleanup() {
AppMenuNotifications.removeNotification(/.*/);
}
},
]);
});