]> khamidou — GitHub mirrors - electron.git/commitdiff
Add spec for #492.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 31 Jul 2014 08:47:11 +0000 (16:47 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 31 Jul 2014 08:47:11 +0000 (16:47 +0800)
spec/node-spec.coffee

index 10e4b27443a227b54c51f75169d8f1cbaf751fca..6b63f9ceae17ef0230ec148d8780e47a8335c979 100644 (file)
@@ -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) ->