Fail "navigator.serviceWorker" tests if WebContents crashes

This commit is contained in:
Aleksei Kuzmin 2017-11-29 23:57:17 +01:00 committed by Cheng Zhao
parent 041b32b01f
commit dcb369ee46

View file

@ -147,6 +147,7 @@ describe('chromium feature', () => {
}, () => done()) }, () => done())
} }
}) })
w.webContents.on('crashed', () => done(new Error('WebContents crashed.')))
w.loadURL(`file://${fixtures}/pages/service-worker/index.html`) w.loadURL(`file://${fixtures}/pages/service-worker/index.html`)
}) })
@ -184,6 +185,7 @@ describe('chromium feature', () => {
}) })
} }
}) })
w.webContents.on('crashed', () => done(new Error('WebContents crashed.')))
w.loadURL(`file://${fixtures}/pages/service-worker/index.html`) w.loadURL(`file://${fixtures}/pages/service-worker/index.html`)
}) })
}) })