This commit is contained in:
Cheng Zhao 2013-09-02 16:47:53 +08:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ f17864372e
ΠšΠΎΠΌΠΌΠΈΡ‚ 893309aa8a
1 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 5 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 3 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -44,8 +44,10 @@ describe 'window module', ->
it 'should emit beforeunload handler', (done) ->
w = new BrowserWindow(show: false)
w.on 'onbeforeunload', done
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-true.html')
w.on 'onbeforeunload', ->
w.destroy()
done()
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-false.html')
describe 'BrowserWindow.loadUrl(url)', ->
it 'should emit loading-state-changed event', (done) ->
@ -84,4 +86,4 @@ describe 'window module', ->
w.on 'onbeforeunload', ->
w.destroy()
done()
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-false.html')
w.loadUrl 'file://' + path.join(fixtures, 'api', 'close-beforeunload-string.html')