Files
firefox/toolkit/mozapps/update/tests/browser/browser_updatesBasicPrompt.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

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(/.*/);
}
},
]);
});