spec: Load url after event listener is set up

This commit is contained in:
Cheng Zhao 2015-10-16 19:58:20 +08:00
parent 4871ea715c
commit 94f64c755d

View file

@ -450,10 +450,10 @@ describe 'asar package', ->
w = new BrowserWindow(show: false, width: 400, height: 400)
p = path.resolve fixtures, 'asar', 'web.asar', 'index.html'
u = url.format protocol: 'file', slashed: true, pathname: p
w.loadUrl u
ipc.once 'dirname', (event, dirname) ->
assert.equal dirname, path.dirname(p)
done()
w.loadUrl u
it 'loads script tag in html', (done) ->
after ->