printerList() -> getPrinters()
This commit is contained in:
parent
84a9b6a42d
commit
92f14f8d52
3 changed files with 39 additions and 37 deletions
|
@ -1125,8 +1125,8 @@ describe('BrowserWindow module', function () {
|
|||
})
|
||||
w.loadURL('data:text/html,%3Ch1%3EHello%2C%20World!%3C%2Fh1%3E')
|
||||
w.webContents.once('did-finish-load', function () {
|
||||
const pl = w.webContents.printerList()
|
||||
assert.equal(Array.isArray(pl), true)
|
||||
const printers = w.webContents.getPrinters()
|
||||
assert.equal(Array.isArray(printers), true)
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue