mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Add failing webContents.isFocused spec
This commit is contained in:
@@ -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)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user