Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions web/tests/liveLastFrame.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,18 @@ describe('last frame controller', () => {
await flush();
expect(u.deps.createObjectURL).not.toHaveBeenCalled();
expect(u.changes).toEqual([]);

const v = setup();
let resolveUnmountLookup;
v.deps.loadRecordingFallback.mockImplementation(
() => new Promise((resolve) => { resolveUnmountLookup = resolve; }),
);
v.controller.setError(true, null);
await flush();
v.controller.dispose();
resolveUnmountLookup(RECORDING_IMAGE);
await flush();
expect(v.changes).toEqual([]);
});

test('switching streams discards the previous camera\'s image', async () => {
Expand Down
Loading