diff options
Diffstat (limited to 'test/mjsunit/test-process-simple.js')
-rw-r--r-- | test/mjsunit/test-process-simple.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/mjsunit/test-process-simple.js b/test/mjsunit/test-process-simple.js index f3a761abd..091f71d07 100644 --- a/test/mjsunit/test-process-simple.js +++ b/test/mjsunit/test-process-simple.js @@ -5,16 +5,16 @@ var cat = new node.Process("cat"); var response = ""; var exit_status = -1; -cat.onOutput = function (chunk) { +cat.addListener("Output", function (chunk) { if (chunk) { response += chunk; if (response === "hello world") cat.close(); } -}; -cat.onError = function (chunk) { +}); +cat.addListener("Error", function (chunk) { assertEquals(null, chunk); -}; -cat.onExit = function (status) { exit_status = status; }; +}); +cat.addListener("Exit", function (status) { exit_status = status; }); function onLoad () { cat.write("hello"); |