~ubuntu-branches/ubuntu/natty/nodejs/natty

« back to all changes in this revision

Viewing changes to test/simple/test-repl.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard, Jérémy Lal, Jonas Smedegaard
  • Date: 2011-02-07 23:39:40 UTC
  • mfrom: (7.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110207233940-ctxh80ux4u7xfybh
Tags: 0.2.6-4
[ Jérémy Lal ]
* Disable simple/test-buffer Buffer.unpack test that fails on ARM.
  The pack/unpack functions are deprecated, and not documented.

[ Jonas Smedegaard ]
* Drop done items from TODO.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    });
61
61
 
62
62
    client_tcp.addListener('data', function (data) {
63
 
      read_buffer += data.asciiSlice(0, data.length);
 
63
      read_buffer += data.toString('ascii', 0, data.length);
64
64
      common.error("TCP data: " + JSON.stringify(read_buffer) + ", expecting " + JSON.stringify(client_tcp.expect));
65
65
      if (read_buffer.indexOf(prompt_tcp) !== -1) {
66
66
        assert.strictEqual(client_tcp.expect, read_buffer);
121
121
    });
122
122
 
123
123
    client_unix.addListener('data', function (data) {
124
 
      read_buffer += data.asciiSlice(0, data.length);
 
124
      read_buffer += data.toString('ascii', 0, data.length);
125
125
      common.error("Unix data: " + JSON.stringify(read_buffer) + ", expecting " + JSON.stringify(client_unix.expect));
126
126
      if (read_buffer.indexOf(prompt_unix) !== -1) {
127
127
        assert.strictEqual(client_unix.expect, read_buffer);