dotfiles/.vim/bundle/lusty/tests/buffer-modified/expect
michener c47f86d55b Add a bunch of stuff, change leader key
git-svn-id: http://photonzero.com/dotfiles/trunk@70 23f722f6-122a-0410-8cef-c75bd312dd78
2010-10-09 02:28:34 +00:00

45 lines
557 B
Text

spawn $env(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
send ":qa!\r"
expect {
timeout {exit 1}
eof
}
exit 0