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({
|
w = new BrowserWindow({
|
||||||
show: false
|
show: false
|
||||||
})
|
})
|
||||||
w.loadURL('about:blank')
|
|
||||||
w.webContents.once('did-finish-load', () => {
|
w.webContents.once('did-finish-load', () => {
|
||||||
// History should have current page by now.
|
// History should have current page by now.
|
||||||
assert.equal(w.webContents.length(), 1)
|
assert.equal(w.webContents.length(), 1)
|
||||||
|
@ -1125,6 +1124,7 @@ describe('chromium feature', function () {
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
w.loadURL('about:blank')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue