Add a spec for the "renderer window closed" error.
This commit is contained in:
parent
a0b24bd155
commit
b04db2e546
2 changed files with 29 additions and 0 deletions
17
spec/fixtures/api/reload-page.html
vendored
Normal file
17
spec/fixtures/api/reload-page.html
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script>
|
||||
const {remote} = require('electron')
|
||||
const browserWindow = remote.getCurrentWindow()
|
||||
|
||||
browserWindow.webContents.on('remote-handler', () => { })
|
||||
browserWindow.reload()
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue