aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-21 10:52:16 -0500
committerGitHub <noreply@github.com>2020-11-21 10:52:16 -0500
commite192a4600af6db8c54f22c854cbabf0b071ca4bc (patch)
tree2ad06e26f9fc5665ed61fca5b3ca5cea1e465f73 /test
parent3c2402e5c2641be27e8a526d78c2e0e544ec9cf8 (diff)
parent2a5307202b02d47e26c4430a47db7a4cad422862 (diff)
downloadrneovim-e192a4600af6db8c54f22c854cbabf0b071ca4bc.tar.gz
rneovim-e192a4600af6db8c54f22c854cbabf0b071ca4bc.tar.bz2
rneovim-e192a4600af6db8c54f22c854cbabf0b071ca4bc.zip
Merge pull request #13307 from janlazo/vim-8.1.0777
vim-patch:8.1.{323,777,933,938},8.2.{178,248,547,581,592,646,658,793,1608,1975,1991,1992,1993,1994,1998,1999,2003,2007,2008,2009}
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/output_spec.lua51
1 files changed, 42 insertions, 9 deletions
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua
index d7dde6345f..3826707743 100644
--- a/test/functional/ui/output_spec.lua
+++ b/test/functional/ui/output_spec.lua
@@ -232,20 +232,53 @@ describe("shell command :!", function()
if has_powershell() then
it('powershell supports literal strings', function()
set_shell_powershell()
- local screen = Screen.new(30, 4)
+ local screen = Screen.new(45, 4)
screen:attach()
feed_command([[!'Write-Output $a']])
- screen:expect{any='\nWrite%-Output %$a', timeout=10000}
+ screen:expect([[
+ :!'Write-Output $a' |
+ Write-Output $a |
+ |
+ Press ENTER or type command to continue^ |
+ ]])
feed_command([[!$a = 1; Write-Output '$a']])
- screen:expect{any='\n%$a', timeout=10000}
+ screen:expect([[
+ :!$a = 1; Write-Output '$a' |
+ $a |
+ |
+ Press ENTER or type command to continue^ |
+ ]])
feed_command([[!"Write-Output $a"]])
- screen:expect{any='\nWrite%-Output', timeout=10000}
+ screen:expect([[
+ :!"Write-Output $a" |
+ Write-Output |
+ |
+ Press ENTER or type command to continue^ |
+ ]])
feed_command([[!$a = 1; Write-Output "$a"]])
- screen:expect{any='\n1', timeout=10000}
- feed_command(iswin()
- and [[!& 'C:\\Windows\\system32\\cmd.exe' /c 'echo $a']]
- or [[!& '/bin/sh' -c 'echo ''$a''']])
- screen:expect{any='\n%$a', timeout=10000}
+ screen:expect([[
+ :!$a = 1; Write-Output "$a" |
+ 1 |
+ |
+ Press ENTER or type command to continue^ |
+ ]])
+ if iswin() then
+ feed_command([[!& 'cmd.exe' /c 'echo $a']])
+ screen:expect([[
+ :!& 'cmd.exe' /c 'echo $a' |
+ $a |
+ |
+ Press ENTER or type command to continue^ |
+ ]])
+ else
+ feed_command([[!& '/bin/sh' -c 'echo ''$a''']])
+ screen:expect([[
+ :!& '/bin/sh' -c 'echo ''$a''' |
+ $a |
+ |
+ Press ENTER or type command to continue^ |
+ ]])
+ end
end)
end
end)