fune/browser/base/content/test/appUpdate/browser_updatesPartialPatchApplyFailureWithCompleteAvailable.js
Doug Thayer f463069928 Bug 893505 - Simplify the application update UI r=chmanchester,enndeakin+6102,Gijs,rstrong
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
2017-03-21 13:50:09 -07:00

22 lines
839 B
JavaScript

add_task(function* testPartialPatchApplyFailureWithCompleteAvailable() {
let patches = getLocalPatchString("partial", null, null, null, null, null,
STATE_PENDING) +
getLocalPatchString("complete", null, null, null,
null, "false");
let promptWaitTime = "0";
let updates = getLocalUpdateString(patches, null, null, null,
Services.appinfo.version, null,
null, null, null, null, "false",
null, null, null, null, promptWaitTime);
yield runUpdateProcessingTest(updates, [
{
notificationId: "update-restart",
button: "secondarybutton",
cleanup() {
PanelUI.removeNotification(/.*/);
}
},
]);
});