Terminate tests when renderer process crashed
This commit is contained in:
parent
6ee95f9529
commit
9ced85d860
1 changed files with 4 additions and 0 deletions
|
@ -141,6 +141,10 @@ app.on('ready', function () {
|
|||
})
|
||||
if (chosen === 0) window.destroy()
|
||||
})
|
||||
window.webContents.on('crashed', function () {
|
||||
console.error('Renderer process crashed')
|
||||
process.exit(1)
|
||||
})
|
||||
|
||||
// For session's download test, listen 'will-download' event in browser, and
|
||||
// reply the result to renderer for verifying
|
||||
|
|
Loading…
Add table
Reference in a new issue