mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
feat(desktop): bundled renderer, modules and instance accounts (#3254)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user