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.
27 lines
948 B
JavaScript
27 lines
948 B
JavaScript
add_task(async function testPartialPatchApplyFailure() {
|
|
let patchProps = {type: "partial",
|
|
state: STATE_PENDING};
|
|
let patches = getLocalPatchString(patchProps);
|
|
let updateProps = {isCompleteUpdate: "false"};
|
|
let updates = getLocalUpdateString(updateProps, patches);
|
|
|
|
await runUpdateProcessingTest(updates, [
|
|
{
|
|
// if we have only an invalid patch, then something's wrong and we don't
|
|
// have an automatic way to fix it, so show the manual update
|
|
// doorhanger.
|
|
notificationId: "update-manual",
|
|
button: "button",
|
|
beforeClick() {
|
|
checkWhatsNewLink("update-manual-whats-new");
|
|
},
|
|
async cleanup() {
|
|
await BrowserTestUtils.browserLoaded(gBrowser.selectedBrowser);
|
|
is(gBrowser.selectedBrowser.currentURI.spec,
|
|
URL_MANUAL_UPDATE, "Landed on manual update page.")
|
|
gBrowser.removeTab(gBrowser.selectedTab);
|
|
}
|
|
},
|
|
]);
|
|
});
|