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({
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')
})
})
})