Merge upstream main preserving custom feature integrations

This commit is contained in:
MasterControl committed 2026-11-10 17:08:15 +00:00
commit 6150a1ac57
228 files changed
+16844 -1388

No files matched your search

+6 -3
View File
@@ -7,7 +7,7 @@ test('Notifications menu dismisses all, including beyond the visible list, and l
let dismissals = 0, renders = 0, pops = 0;
const load = loader({}, {
'../../ui/notifications': { NotificationsListLayer: class {} },
'../../ui/notification-filter': { NotificationFilterLayer: class {} },
'../../ui/dashboard/settings-menus': { NOTIFICATIONS_SETTINGS_SECTION: 'notifications' },
'../../native/notification-icons': {
ALL_NOTIFICATIONS: 0x7fffffff,
readActiveNotifications(max) { assert.equal(max, 0x7fffffff); return active; },
@@ -19,9 +19,12 @@ test('Notifications menu dismisses all, including beyond the visible list, and l
createInProcessWindow(value) { options = value; return { requestRender() { renders++; } }; },
},
});
load('app/apps/notifications/notifications-app.ts').createNotificationsAppWindow({});
const sections = [];
load('app/apps/notifications/notifications-app.ts').createNotificationsAppWindow({}, section => sections.push(section));
const items = options.menuItems();
assert.equal(items[0].label, 'Notification filter');
assert.equal(items[0].label, 'Settings');
items[0].onSelect({ stack: { pop() {} } });
assert.deepEqual(sections, ['notifications']);
const action = items.find(x => x.label === 'Dismiss all notifications');
assert.equal(action.disabled(), false);
assert.equal(dismissals, 0);