Add failing webContents.isFocused spec
This commit is contained in:
parent
2a67b05fcf
commit
cc7fe82b74
1 changed files with 8 additions and 0 deletions
|
@ -71,4 +71,12 @@ describe('webContents module', function () {
|
|||
specWebContents.openDevTools()
|
||||
})
|
||||
})
|
||||
|
||||
describe('isFocused() API', function () {
|
||||
it('returns false when the window is hidden', function () {
|
||||
BrowserWindow.getAllWindows().forEach(function (window) {
|
||||
assert.equal(!window.isVisible() && window.webContents.isFocused(), false)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue