Print detailed error for serviceWorker test (#12186)
This commit is contained in:
parent
44c66fc284
commit
cde0c1d418
2 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ describe('chromium feature', () => {
|
||||||
if (args[0] === 'reload') {
|
if (args[0] === 'reload') {
|
||||||
w.webContents.reload()
|
w.webContents.reload()
|
||||||
} else if (args[0] === 'error') {
|
} else if (args[0] === 'error') {
|
||||||
done(new Error(`unexpected error : ${JSON.stringify(args[1])}`))
|
done(args[1])
|
||||||
} else if (args[0] === 'response') {
|
} else if (args[0] === 'response') {
|
||||||
assert.equal(args[1], 'Hello from serviceWorker!')
|
assert.equal(args[1], 'Hello from serviceWorker!')
|
||||||
session.defaultSession.clearStorageData({
|
session.defaultSession.clearStorageData({
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
ipcRenderer.send('reload');
|
ipcRenderer.send('reload');
|
||||||
}
|
}
|
||||||
}).catch(function(error) {
|
}).catch(function(error) {
|
||||||
ipcRenderer.send('error', error);
|
ipcRenderer.send('error', `${error.message}\n${error.stack}`);
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue