From: isaacs Date: Sat, 1 Dec 2012 02:21:01 +0000 (-0800) Subject: test: TTY only has writeBuffer(), not write() X-Git-Tag: v0.9.4~63 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4de274cbee902cc17608ca9507ffd45fab2b706e;p=platform%2Fupstream%2Fnodejs.git test: TTY only has writeBuffer(), not write() This test is only passing because it's skipped normally. --- diff --git a/test/simple/test-tty-wrap.js b/test/simple/test-tty-wrap.js index da661c4..610b92b 100644 --- a/test/simple/test-tty-wrap.js +++ b/test/simple/test-tty-wrap.js @@ -33,20 +33,16 @@ if (isTTY(1) == false) { var handle = new TTY(1); var callbacks = 0; -var req1 = handle.write(Buffer('hello world\n')); +var req1 = handle.writeBuffer(Buffer('hello world\n')); req1.oncomplete = function() { callbacks++; }; -var req2 = handle.write(Buffer('hello world\n')); +var req2 = handle.writeBuffer(Buffer('hello world\n')); req2.oncomplete = function() { callbacks++; }; -handle.close(); - process.on('exit', function() { assert.equal(2, callbacks); }); - -