💄 fix the window specs.
This commit is contained in:
parent
f17864372e
commit
893309aa8a
1 changed files with 5 additions and 3 deletions
|
@ -44,8 +44,10 @@ describe 'window module', ->
|
||||||
|
|
||||||
it 'should emit beforeunload handler', (done) ->
|
it 'should emit beforeunload handler', (done) ->
|
||||||
w = new BrowserWindow(show: false)
|
w = new BrowserWindow(show: false)
|
||||||
w.on 'onbeforeunload', done
|
w.on 'onbeforeunload', ->
|
||||||
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-true.html')
|
w.destroy()
|
||||||
|
done()
|
||||||
|
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-false.html')
|
||||||
|
|
||||||
describe 'BrowserWindow.loadUrl(url)', ->
|
describe 'BrowserWindow.loadUrl(url)', ->
|
||||||
it 'should emit loading-state-changed event', (done) ->
|
it 'should emit loading-state-changed event', (done) ->
|
||||||
|
@ -84,4 +86,4 @@ describe 'window module', ->
|
||||||
w.on 'onbeforeunload', ->
|
w.on 'onbeforeunload', ->
|
||||||
w.destroy()
|
w.destroy()
|
||||||
done()
|
done()
|
||||||
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-false.html')
|
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-string.html')
|
||||||
|
|
Loading…
Reference in a new issue