diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-29 18:16:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-29 18:16:32 +0100 |
commit | 37fef16c225eabed28a3c7a0542d2eeef30d812b (patch) | |
tree | 57bebcbc858d18cb593d625d7eb659eb8f3a3c7a /src/testdir | |
parent | 54acb90d9e672315e3bd13f8dc71f828df97c868 (diff) |
patch 9.0.0321: cannot use the message popup window directlyv9.0.0321
Problem: Cannot use the message popup window directly.
Solution: Add ":echowindow".
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/dumps/Test_echowindow_1.dump | 8 | ||||
-rw-r--r-- | src/testdir/dumps/Test_echowindow_2.dump | 8 | ||||
-rw-r--r-- | src/testdir/dumps/Test_echowindow_3.dump | 8 | ||||
-rw-r--r-- | src/testdir/test_messages.vim | 25 |
4 files changed, 49 insertions, 0 deletions
diff --git a/src/testdir/dumps/Test_echowindow_1.dump b/src/testdir/dumps/Test_echowindow_1.dump new file mode 100644 index 0000000000..8c3db07d4c --- /dev/null +++ b/src/testdir/dumps/Test_echowindow_1.dump @@ -0,0 +1,8 @@ +>s+0&#ffffff0|o|m|e| |t|e|x|t| @65 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|═+0#e000002&@74 +|f|i|r|s|t| |l|i|n|e| @64 +| +0#0000000&@56|1|,|1| @10|A|l@1| diff --git a/src/testdir/dumps/Test_echowindow_2.dump b/src/testdir/dumps/Test_echowindow_2.dump new file mode 100644 index 0000000000..f8bea0c4ad --- /dev/null +++ b/src/testdir/dumps/Test_echowindow_2.dump @@ -0,0 +1,8 @@ +>s+0&#ffffff0|o|m|e| |t|e|x|t| @65 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|═+0#e000002&@74 +|f|i|r|s|t| |l|i|n|e| @64 +|s|e|c|o|n|d| |l|i|n|e| @63 +| +0#0000000&@56|1|,|1| @10|A|l@1| diff --git a/src/testdir/dumps/Test_echowindow_3.dump b/src/testdir/dumps/Test_echowindow_3.dump new file mode 100644 index 0000000000..5d84236ded --- /dev/null +++ b/src/testdir/dumps/Test_echowindow_3.dump @@ -0,0 +1,8 @@ +>s+0&#ffffff0|o|m|e| |t|e|x|t| @65 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +| +0#0000000&@56|1|,|1| @10|A|l@1| diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim index 8683adcf97..2c89748855 100644 --- a/src/testdir/test_messages.vim +++ b/src/testdir/test_messages.vim @@ -537,5 +537,30 @@ func Test_cmdheight_zero_shell() set cmdheight& endfunc +func Test_echowindow() + CheckScreendump + + let lines =<< trim END + call setline(1, 'some text') + func ShowMessage(arg) + echowindow a:arg + endfunc + echowindow 'first line' + END + call writefile(lines, 'XtestEchowindow') + let buf = RunVimInTerminal('-S XtestEchowindow', #{rows: 8}) + call VerifyScreenDump(buf, 'Test_echowindow_1', {}) + + call term_sendkeys(buf, ":call ShowMessage('second line')\<CR>") + call VerifyScreenDump(buf, 'Test_echowindow_2', {}) + + call term_sendkeys(buf, ":call popup_clear()\<CR>") + call VerifyScreenDump(buf, 'Test_echowindow_3', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('XtestEchowindow') +endfunc + " vim: shiftwidth=2 sts=2 expandtab |