Use native_mate based Event in browser_ipc.

This commit is contained in:
Cheng Zhao 2014-04-17 17:14:05 +08:00
parent da483ba7f3
commit f36569c3b9
3 changed files with 7 additions and 8 deletions

View file

@ -61,12 +61,10 @@ describe 'ipc module', ->
msg = ipc.sendChannelSync 'echo', 'test'
assert.equal msg, 'test'
it 'does not crash when reply is not sent and both browser and event are destroyed', (done) ->
it 'does not crash when reply is not sent and browser is destroyed', (done) ->
w = new BrowserWindow(show: false)
remote.require('ipc').once 'send-sync-message', (event) ->
event.returnValue = null
w.destroy()
event.destroy()
done()
w.loadUrl 'file://' + path.join(fixtures, 'api', 'send-sync-message.html')