From e62986b97d14e06956dd9da0e961114e89c48d06 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 31 Jul 2014 16:47:11 +0800 Subject: [PATCH] Add spec for #492. --- spec/node-spec.coffee | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/node-spec.coffee b/spec/node-spec.coffee index 10e4b27443a2..6b63f9ceae17 100644 --- a/spec/node-spec.coffee +++ b/spec/node-spec.coffee @@ -32,6 +32,14 @@ describe 'node feature', -> done() child.send 'message' + it 'works in browser process', (done) -> + fork = require('remote').require('child_process').fork + child = fork path.join(fixtures, 'module', 'ping.js') + child.on 'message', (msg) -> + assert.equal msg, 'message' + done() + child.send 'message' + describe 'contexts', -> describe 'setTimeout in fs callback', -> it 'does not crash', (done) ->