spec: openDevTools should not crash for frameless window

This commit is contained in:
Cheng Zhao 2018-07-16 10:23:43 +09:00
parent 4a7c85f43e
commit 222291631d

View file

@ -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)', () => {
let bv = null