mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test(lsp): add a screen:expect() between insert() and feed_command() (#21577)
The insert() and feed_command() type a lot of text, with only one screen:expect() call after the feed_command() it may time out.
This commit is contained in:
parent
d0dd8d11bf
commit
05b6dd6e5f
@ -307,6 +307,24 @@ describe('semantic token highlighting', function()
|
||||
]])
|
||||
|
||||
insert(text)
|
||||
screen:expect { grid = [[
|
||||
#include <iostream> |
|
||||
|
|
||||
int {8:main}() |
|
||||
{ |
|
||||
int {7:x}; |
|
||||
#ifdef {5:__cplusplus} |
|
||||
{4:std}::{2:cout} << {2:x} << "\n"; |
|
||||
{6:#else} |
|
||||
{6: printf("%d\n", x);} |
|
||||
{6:#endif} |
|
||||
} |
|
||||
^} |
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
{1:~ }|
|
||||
|
|
||||
]] }
|
||||
feed_command('%s/int x/int x()/')
|
||||
feed_command('noh')
|
||||
screen:expect { grid = [[
|
||||
|
Loading…
Reference in New Issue
Block a user