mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
tests/bind.expect: re-enable but at human typing speed only
The interactive bind tests work if the keys are treated like there is a human pressing them. This reverts commit 0006d23df82fd10c37acecc5a0fd578afb3be437.
This commit is contained in:
parent
0006d23df8
commit
55abe105ea
@ -18,7 +18,7 @@ expect_prompt -re {\r\nsuccess\r\n} {
|
|||||||
puts stderr "Couldn't find expected output 'success'"
|
puts stderr "Couldn't find expected output 'success'"
|
||||||
}
|
}
|
||||||
# try again without the human typing
|
# try again without the human typing
|
||||||
send_line "echo fail\033ddiecho success"
|
send_line -h "echo fail\033ddiecho success"
|
||||||
expect_prompt -re {\r\nsuccess\r\n} {
|
expect_prompt -re {\r\nsuccess\r\n} {
|
||||||
puts "success"
|
puts "success"
|
||||||
} -nounmatched -re {\r\nfail} {
|
} -nounmatched -re {\r\nfail} {
|
||||||
@ -28,7 +28,7 @@ expect_prompt -re {\r\nsuccess\r\n} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Test lowercase-r replace
|
# Test lowercase-r replace
|
||||||
send_line "\033ddiecho TEXT\033hhrAi"
|
send_line -h "\033ddiecho TEXT\033hhrAi"
|
||||||
expect_prompt -re {\r\nTAXT\r\n} {
|
expect_prompt -re {\r\nTAXT\r\n} {
|
||||||
puts "replace success"
|
puts "replace success"
|
||||||
} -nounmatched -re {\r\nfail} {
|
} -nounmatched -re {\r\nfail} {
|
||||||
@ -38,7 +38,7 @@ expect_prompt -re {\r\nTAXT\r\n} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# still in insert mode, switch back to regular key bindings
|
# still in insert mode, switch back to regular key bindings
|
||||||
send_line "set -g fish_key_bindings fish_default_key_bindings"
|
send_line -h "set -g fish_key_bindings fish_default_key_bindings"
|
||||||
expect_prompt
|
expect_prompt
|
||||||
send_line "echo success"
|
send_line "echo success"
|
||||||
expect_prompt -re {\r\nsuccess\r\n} {
|
expect_prompt -re {\r\nsuccess\r\n} {
|
||||||
|
@ -66,8 +66,6 @@ end
|
|||||||
|
|
||||||
set -l failed
|
set -l failed
|
||||||
for i in *.expect
|
for i in *.expect
|
||||||
# HACK: Explicitly disable the bind test until we can figure out what to do with it
|
|
||||||
contains -- $i bind.expect; and continue
|
|
||||||
if not test_file $i
|
if not test_file $i
|
||||||
set failed $failed $i
|
set failed $failed $i
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user