mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 02:17:45 -10:00
27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
add_task(async function testPartialPatchApplyFailure() {
|
|
let patches = getLocalPatchString("partial", null, null, null, null, null,
|
|
STATE_PENDING);
|
|
let updates = getLocalUpdateString(patches, null, null, null,
|
|
Services.appinfo.version, null,
|
|
null, null, null, null, "false");
|
|
|
|
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);
|
|
}
|
|
},
|
|
]);
|
|
});
|