mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-04-12 04:19:25 -07:00
Fix Windows CodeRabbit review follow-ups
This commit is contained in:
@@ -39,16 +39,19 @@ const mpvMinimized: MpvPollResult = {
|
||||
|
||||
test('WindowsWindowTracker skips overlapping polls while poll is in flight', () => {
|
||||
let pollCalls = 0;
|
||||
const tracker = new WindowsWindowTracker(undefined, {
|
||||
let tracker: WindowsWindowTracker;
|
||||
tracker = new WindowsWindowTracker(undefined, {
|
||||
pollMpvWindows: () => {
|
||||
pollCalls += 1;
|
||||
if (pollCalls === 1) {
|
||||
(tracker as unknown as { pollGeometry: () => void }).pollGeometry();
|
||||
}
|
||||
return mpvVisible();
|
||||
},
|
||||
});
|
||||
|
||||
(tracker as unknown as { pollGeometry: () => void }).pollGeometry();
|
||||
(tracker as unknown as { pollGeometry: () => void }).pollGeometry();
|
||||
assert.equal(pollCalls, 2);
|
||||
assert.equal(pollCalls, 1);
|
||||
});
|
||||
|
||||
test('WindowsWindowTracker updates geometry from poll output', () => {
|
||||
|
||||
Reference in New Issue
Block a user