mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-29 09:52:50 -10:00
Converts the test functions getLocalPatchString, getLocalUpdateString, getRemotePatchString, and getRemoteUpdateString to use an object as a param.
27 lines
619 B
JavaScript
27 lines
619 B
JavaScript
add_task(async function testBasicPrompt() {
|
|
SpecialPowers.pushPrefEnv({set: [
|
|
[PREF_APP_UPDATE_STAGING_ENABLED, true],
|
|
[PREF_APP_UPDATE_AUTO, false]
|
|
]});
|
|
|
|
let updateParams = "promptWaitTime=0";
|
|
gUseTestUpdater = true;
|
|
|
|
await runUpdateTest(updateParams, 1, [
|
|
{
|
|
notificationId: "update-available",
|
|
button: "button",
|
|
beforeClick() {
|
|
checkWhatsNewLink("update-available-whats-new");
|
|
}
|
|
},
|
|
{
|
|
notificationId: "update-restart",
|
|
button: "secondarybutton",
|
|
cleanup() {
|
|
AppMenuNotifications.removeNotification(/.*/);
|
|
}
|
|
},
|
|
]);
|
|
});
|