spec: openDevTools should not crash for frameless window
This commit is contained in:
parent
4a7c85f43e
commit
222291631d
1 changed files with 8 additions and 0 deletions
|
@ -839,6 +839,14 @@ describe('BrowserWindow module', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('BrowserWindow.openDevTools()', () => {
|
||||||
|
it('does not crash for frameless window', () => {
|
||||||
|
w.destroy()
|
||||||
|
w = new BrowserWindow({ show: false })
|
||||||
|
w.openDevTools()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('BrowserWindow.fromBrowserView(browserView)', () => {
|
describe('BrowserWindow.fromBrowserView(browserView)', () => {
|
||||||
let bv = null
|
let bv = null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue