mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-28 13:40:17 -10:00
Converts the test functions getLocalPatchString, getLocalUpdateString, getRemotePatchString, and getRemoteUpdateString to use an object as a param.
21 lines
661 B
JavaScript
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(/.*/);
|
|
}
|
|
},
|
|
]);
|
|
});
|