feat(desktop): bundled renderer, modules and instance accounts (#3254)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-07 16:48:07 +02:00
1 parent c748c8af4e
commit 7c5fa2180a
1275 files changed
+215074 -81246

No files matched your search

@@ -164,6 +164,18 @@ describe('mac-screen-capture loader wrapper', () => {
screenPermission: 'authorized',
});
});
test('forwards the screen recording probe result from the native binding', async () => {
const {binding} = makeFakeBinding();
binding.probeScreenRecordingAccess = async () => 'granted';
macScreenCapture.__setBindingForTests(binding);
assert.equal(await macScreenCapture.probeScreenRecordingAccess(), 'granted');
});
test('reports the screen recording probe as unsupported without a binding that has it', async () => {
macScreenCapture.__setBindingForTests(null);
assert.equal(await macScreenCapture.probeScreenRecordingAccess(), 'unsupported');
macScreenCapture.__setBindingForTests(makeFakeBinding().binding);
assert.equal(await macScreenCapture.probeScreenRecordingAccess(), 'unsupported');
});
test('installs a native frame sink handle once before start', async () => {
const {binding, calls, frameSinkHandleCalls} = makeFakeBinding();
macScreenCapture.__setBindingForTests(binding);