Add a spec for the "renderer window closed" error.

This commit is contained in:
Charlie Hess 2017-01-12 15:02:24 -08:00 committed by Kevin Sawicki
parent a0b24bd155
commit b04db2e546
2 changed files with 29 additions and 0 deletions

17
spec/fixtures/api/reload-page.html vendored Normal file
View 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>