Load URL after registering listener
This commit is contained in:
parent
777b5b17de
commit
af1d0c45ca
1 changed files with 1 additions and 1 deletions
|
@ -1114,7 +1114,6 @@ describe('chromium feature', function () {
|
|||
w = new BrowserWindow({
|
||||
show: false
|
||||
})
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.once('did-finish-load', () => {
|
||||
// History should have current page by now.
|
||||
assert.equal(w.webContents.length(), 1)
|
||||
|
@ -1125,6 +1124,7 @@ describe('chromium feature', function () {
|
|||
done()
|
||||
})
|
||||
})
|
||||
w.loadURL('about:blank')
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue