test: use render-process-gone event in tests (#37280)
Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
fdab0799fe
commit
beed240454
3 changed files with 12 additions and 12 deletions
4
spec/fixtures/no-proprietary-codecs.js
vendored
4
spec/fixtures/no-proprietary-codecs.js
vendored
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue