Revision control
Copy as Markdown
Other Tools
// Invoke the "Check for Updates" menu item
function checkAll(win) {
triggerPageOptionsAction(win, "check-for-updates");
return new Promise(resolve => {
const observer = {
observe() {
Services.obs.removeObserver(observer, "EM-update-check-finished");
resolve();
},
};
Services.obs.addObserver(observer, "EM-update-check-finished");
});
}
// Test "Check for Updates" with both auto-update settings
add_task(() => interactiveUpdateTest(true, checkAll));
add_task(() => interactiveUpdateTest(false, checkAll));