Skip to content
Browse files

fix offsets for width test

  • Loading branch information...
1 parent 05a571d commit 1cbfbb6eddcd89a21cce74e6f087959b2ae6671c @substack committed May 11, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 test/width.js
View
11 test/width.js
@@ -10,24 +10,29 @@ test('width', function (t) {
.seq(function () { pos.once('pos', this.ok) })
.seq(function () { setTimeout(this.ok, 50) })
.seq(function () {
- t.equal(pos.x, 5);
+ // abcde*
+ t.equal(pos.x, 6);
t.equal(pos.y, 1);
pos.write(new Buffer('fghij'));
this();
})
.seq(function () { pos.once('pos', this.ok) })
.seq(function () { setTimeout(this.ok, 50) })
.seq(function () {
+ // abcdefghij
+ // *
t.equal(pos.x, 1);
- t.equal(pos.y, 1);
+ t.equal(pos.y, 2);
pos.write(new Buffer('klmn'));
this();
})
.seq(function () { pos.once('pos', this.ok) })
.seq(function () { setTimeout(this.ok, 50) })
.seq(function () {
+ // abcdefghij
+ // klmn*
t.equal(pos.x, 5);
- t.equal(pos.y, 1);
+ t.equal(pos.y, 2);
pos.end();
t.end();
})

0 comments on commit 1cbfbb6

Please sign in to comment.
Something went wrong with that request. Please try again.