Skip to content

Commit

Permalink
Adding test for "[+]" indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
sjbach committed Mar 28, 2010
1 parent 0fa41e2 commit b8a7d66
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/buffer-modified/bar
@@ -0,0 +1 @@
bar***
46 changes: 46 additions & 0 deletions tests/buffer-modified/expect
@@ -0,0 +1,46 @@
spawn vim -N --noplugin -u ../vimrc
set timeout 3
expect {
timeout {exit 1}
"VIM - Vi IMproved"
}
send ":e foo\r"
expect {
timeout {exit 1}
"foo###" # Success
}

send ":e bar\r"
expect {
timeout {exit 1}
"bar***" # Success
}

send "otypingblah"
expect {
timeout {exit 1}
"typingblah" # Success
}

# ESC
send \033

send ":LustyBufferExplorer\r"
expect {
"Press ENTER" {exit 1}
"Error" {exit 1}
"Warning" {exit 1}
timeout {exit 1}
"\[+]" # Success
}

send \033

# Ctrl-C
send ":qa!\r"
expect {
timeout {exit 1}
eof
}
exit 0

1 change: 1 addition & 0 deletions tests/buffer-modified/foo
@@ -0,0 +1 @@
foo###
2 changes: 1 addition & 1 deletion tests/root-navigation-nonexistent-file/expect
Expand Up @@ -10,7 +10,7 @@ expect {
">>"
}
# Ctrl-U
send \021
send \025
send "/"
# Should not have caused a backtrace and "Press ENTER ..." message
expect {
Expand Down
2 changes: 1 addition & 1 deletion tests/root-navigation/expect
Expand Up @@ -10,7 +10,7 @@ expect {
">>"
}
# Ctrl-U
send \021
send \025
send "/"
# Should not have caused a backtrace and "Press ENTER ..." message
expect {
Expand Down
3 changes: 3 additions & 0 deletions tests/vimrc
@@ -1,4 +1,7 @@
set nocompatible
set hidden
set nobackup
set noswapfile

source ../../lusty-explorer.vim

Expand Down

0 comments on commit b8a7d66

Please sign in to comment.