chore: remove deprecated capturer count APIs (#37075)
chore: remove deprecated incrementCapturerCount() / decrementCapturerCount() Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
7dcd97f864
commit
8d382b9c60
5 changed files with 0 additions and 99 deletions
|
@ -1790,7 +1790,6 @@ describe('BrowserWindow module', () => {
|
|||
w.loadFile(path.join(fixtures, 'pages', 'a.html'));
|
||||
await emittedOnce(w, 'ready-to-show');
|
||||
|
||||
w.webContents.incrementCapturerCount();
|
||||
const image = await w.capturePage();
|
||||
expect(image.isEmpty()).to.equal(false);
|
||||
});
|
||||
|
@ -1808,14 +1807,6 @@ describe('BrowserWindow module', () => {
|
|||
// Values can be 0,2,3,4, or 6. We want 6, which is RGB + Alpha
|
||||
expect(imgBuffer[25]).to.equal(6);
|
||||
});
|
||||
|
||||
it('should increase the capturer count', () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
w.webContents.incrementCapturerCount();
|
||||
expect(w.webContents.isBeingCaptured()).to.be.true();
|
||||
w.webContents.decrementCapturerCount();
|
||||
expect(w.webContents.isBeingCaptured()).to.be.false();
|
||||
});
|
||||
});
|
||||
|
||||
describe('BrowserWindow.setProgressBar(progress)', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue