chore: remove deprecated webContents.getPrinters()
(#39663)
This commit is contained in:
parent
d76a35afe4
commit
c96bb9958f
7 changed files with 19 additions and 51 deletions
|
@ -1954,16 +1954,6 @@ describe('webContents module', () => {
|
|||
});
|
||||
});
|
||||
|
||||
ifdescribe(features.isPrintingEnabled())('getPrinters()', () => {
|
||||
afterEach(closeAllWindows);
|
||||
it('can get printer list', async () => {
|
||||
const w = new BrowserWindow({ show: false, webPreferences: { sandbox: true } });
|
||||
await w.loadURL('about:blank');
|
||||
const printers = w.webContents.getPrinters();
|
||||
expect(printers).to.be.an('array');
|
||||
});
|
||||
});
|
||||
|
||||
ifdescribe(features.isPrintingEnabled())('getPrintersAsync()', () => {
|
||||
afterEach(closeAllWindows);
|
||||
it('can get printer list', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue