Terminate tests when renderer process crashed

This commit is contained in:
Cheng Zhao 2017-07-31 16:24:23 +09:00
parent 6ee95f9529
commit 9ced85d860

View file

@ -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