test: use render-process-gone event in tests (#37280)

Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
Milan Burda 2023-02-16 10:25:41 +01:00 committed by GitHub
parent fdab0799fe
commit beed240454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 12 deletions

View file

@ -21,8 +21,8 @@ app.whenReady().then(() => {
}
});
window.webContents.on('crashed', (event, killed) => {
console.log(`WebContents crashed (killed=${killed})`);
window.webContents.on('render-process-gone', (event, details) => {
console.log(`WebContents crashed ${JSON.stringify(details)}`);
app.exit(1);
});