Increase timeout for some tests
This commit is contained in:
parent
80c8ab4c39
commit
81783b255e
2 changed files with 2 additions and 0 deletions
|
@ -216,6 +216,7 @@ describe 'browser-window module', ->
|
||||||
|
|
||||||
describe 'will-navigate event', ->
|
describe 'will-navigate event', ->
|
||||||
it 'emits when user starts a navigation', (done) ->
|
it 'emits when user starts a navigation', (done) ->
|
||||||
|
@timeout 10000
|
||||||
w.webContents.on 'will-navigate', (event, url) ->
|
w.webContents.on 'will-navigate', (event, url) ->
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
assert.equal url, 'https://www.github.com/'
|
assert.equal url, 'https://www.github.com/'
|
||||||
|
|
|
@ -66,6 +66,7 @@ describe 'ipc module', ->
|
||||||
assert.equal msg, 'test'
|
assert.equal msg, 'test'
|
||||||
|
|
||||||
it 'does not crash when reply is not sent and browser is destroyed', (done) ->
|
it 'does not crash when reply is not sent and browser is destroyed', (done) ->
|
||||||
|
@timeout 10000
|
||||||
w = new BrowserWindow(show: false)
|
w = new BrowserWindow(show: false)
|
||||||
remote.require('ipc').once 'send-sync-message', (event) ->
|
remote.require('ipc').once 'send-sync-message', (event) ->
|
||||||
event.returnValue = null
|
event.returnValue = null
|
||||||
|
|
Loading…
Reference in a new issue