projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9eb649
)
add test for readline putty support
author
Johan Euphrosine
<proppy@aminche.com>
Mon, 23 Aug 2010 17:21:27 +0000
(19:21 +0200)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 23 Aug 2010 17:25:55 +0000
(10:25 -0700)
test/simple/test-readline.js
patch
|
blob
|
history
diff --git
a/test/simple/test-readline.js
b/test/simple/test-readline.js
index
a551ac2
..
9ed68e3
100644
(file)
--- a/
test/simple/test-readline.js
+++ b/
test/simple/test-readline.js
@@
-16,6
+16,10
@@
var key = {
rxvt: {
home: [27, 91, 55],
end: [27, 91, 56]
+ },
+ putty: {
+ home: [27, 91, 49, 126],
+ end: [27, 91, 52, 126]
}
};
@@
-49,6
+53,10
@@
rl.write(key.gnome.home);
assert.equal(0, rl.cursor);
rl.write(key.gnome.end);
assert.equal(3, rl.cursor);
+rl.write(key.putty.home);
+assert.equal(0, rl.cursor);
+rl.write(key.putty.end);
+assert.equal(3, rl.cursor);
rl = readlineFakeStream();
rl.write('foo bar.hop/zoo');