Assert remote event names
This commit is contained in:
parent
b04db2e546
commit
45986405b8
4 changed files with 28 additions and 9 deletions
18
spec/fixtures/api/remote-event-handler.html
vendored
Normal file
18
spec/fixtures/api/remote-event-handler.html
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script>
|
||||
const {remote} = require('electron')
|
||||
const browserWindow = remote.getCurrentWindow()
|
||||
|
||||
const handler = () => {}
|
||||
browserWindow.webContents.on('remote-handler', handler)
|
||||
browserWindow.webContents.on('other-remote-handler', handler)
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue