spec/fixtures/pages/ping.html (7 lines of code) (raw):

<html> <body> <script type="text/javascript" charset="utf-8"> require('electron').ipcRenderer.send('pong') </script> </body> </html>