mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Terminate tests when renderer process crashed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user