mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
spec: Load url after event listener is set up
This commit is contained in:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user