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:
02b8109
)
test: fix multiple_line problem in match
author
Yazhong Liu
<yorkiefixer@gmail.com>
Tue, 1 Jul 2014 13:35:35 +0000
(21:35 +0800)
committer
Fedor Indutny
<fedor@indutny.com>
Tue, 1 Jul 2014 15:04:35 +0000
(19:04 +0400)
Signed-off-by: Fedor Indutny <fedor@indutny.com>
test/simple/test-repl.js
patch
|
blob
|
history
diff --git
a/test/simple/test-repl.js
b/test/simple/test-repl.js
index
63ddd57
..
69b9b54
100644
(file)
--- a/
test/simple/test-repl.js
+++ b/
test/simple/test-repl.js
@@
-82,7
+82,10
@@
function error_test() {
if (read_buffer.indexOf(prompt_unix) !== -1) {
// if it's an exact match, then don't do the regexp
if (read_buffer !== client_unix.expect) {
- assert.ok(read_buffer.match(client_unix.expect));
+ var expect = client_unix.expect;
+ if (expect === prompt_multiline)
+ expect = /[\.]{3} /;
+ assert.ok(read_buffer.match(expect));
console.error('match');
}
read_buffer = '';