Load URL after registering listener

This commit is contained in:
Kevin Sawicki 2017-06-05 14:47:11 -07:00
parent 777b5b17de
commit af1d0c45ca

View file

@ -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')
}) })
}) })
}) })