mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Handle empty handles (#11598)
* Handle empty handles * Close and dispose window at end of void test * Dispose of existing window before running void 0 spec
This commit is contained in:
committed by
shelley vohr
parent
181169b743
commit
9bd7d53cf8
@@ -86,6 +86,16 @@ describe('BrowserWindow module', () => {
|
||||
return closeWindow(w).then(() => { w = null })
|
||||
})
|
||||
|
||||
describe('BrowserWindow constructor', () => {
|
||||
it('allows passing void 0 as the webContents', () => {
|
||||
w.close()
|
||||
w = null
|
||||
w = new BrowserWindow({
|
||||
webContents: void 0
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('BrowserWindow.close()', () => {
|
||||
let server
|
||||
|
||||
|
||||
Reference in New Issue
Block a user