mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-13 06:38:48 +02:00
There's quite a few changes in here. At a high level, all we're trying to do is to replace the old update popup with a less intrusive and more modern doorhanger (set of doorhangers) for various update failure conditions. MozReview-Commit-ID: 24sESMTosNX --HG-- extra : rebase_source : ee0c1e00fe3f99e16388f0de17274ff97a3b9fcf
28 lines
795 B
JavaScript
28 lines
795 B
JavaScript
add_task(function* testBasicPrompt() {
|
|
SpecialPowers.pushPrefEnv({set: [[PREF_APP_UPDATE_STAGING_ENABLED, true]]});
|
|
let updateParams = "showPrompt=1&promptWaitTime=0";
|
|
gUseTestUpdater = true;
|
|
|
|
// Open a new window to make sure that it doesn't get in the way
|
|
// of the notification management.
|
|
let extraWindow = yield BrowserTestUtils.openNewBrowserWindow();
|
|
|
|
yield runUpdateTest(updateParams, 1, [
|
|
{
|
|
notificationId: "update-available",
|
|
button: "button",
|
|
beforeClick() {
|
|
checkWhatsNewLink("update-available-whats-new");
|
|
}
|
|
},
|
|
{
|
|
notificationId: "update-restart",
|
|
button: "secondarybutton",
|
|
*cleanup() {
|
|
PanelUI.removeNotification(/.*/);
|
|
}
|
|
},
|
|
]);
|
|
|
|
yield BrowserTestUtils.closeWindow(extraWindow);
|
|
});
|