Use native_mate based Event in browser_ipc.
This commit is contained in:
parent
da483ba7f3
commit
f36569c3b9
3 changed files with 7 additions and 8 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue