spec: The preload script should be able to receive ipc messages

This commit is contained in:
Cheng Zhao 2015-01-26 15:50:10 -08:00
parent 6c62895898
commit c14c6a3521
2 changed files with 20 additions and 0 deletions

4
spec/fixtures/module/preload-ipc.js vendored Normal file
View file

@ -0,0 +1,4 @@
var ipc = require('ipc');
ipc.on('ping', function(message) {
ipc.sendToHost('pong', message);
});