diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-05-14 13:39:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 13:39:00 +0200 |
commit | 94f78ccf89a2bd536876859e33f40965b5ffb27d (patch) | |
tree | 92ce898b91ad7301f47553ff47e14bb1a4667cfc /test/functional/ui | |
parent | 9e0982a1a2f7178d4492592627c5ef92576fc9ee (diff) | |
parent | 5020daa6e5ced9235f5d11317c74f655a129803e (diff) | |
download | rneovim-94f78ccf89a2bd536876859e33f40965b5ffb27d.tar.gz rneovim-94f78ccf89a2bd536876859e33f40965b5ffb27d.tar.bz2 rneovim-94f78ccf89a2bd536876859e33f40965b5ffb27d.zip |
Merge pull request #9883 from bfredl/termredraw
make terminal state redraw like any other state
Diffstat (limited to 'test/functional/ui')
-rw-r--r-- | test/functional/ui/searchhl_spec.lua | 14 | ||||
-rw-r--r-- | test/functional/ui/wildmode_spec.lua | 8 |
2 files changed, 13 insertions, 9 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua index a46670d8a2..65ae124353 100644 --- a/test/functional/ui/searchhl_spec.lua +++ b/test/functional/ui/searchhl_spec.lua @@ -163,12 +163,14 @@ describe('search highlighting', function() ]]) feed('/foo') sleep(50) -- Allow some terminal activity. - screen:expect([[ - {3:foo} bar baz {3:│}xxx | - bar baz {2:foo} {3:│}xxx | - bar {2:foo} baz {3:│}xxx | - {3:│}xxx | - {1:~ }{3:│}xxx | + -- NB: in earlier versions terminal output was redrawn during cmdline mode. + -- For now just assert that the screens remain unchanged. + screen:expect([[ + {3:foo} bar baz {3:│} | + bar baz {2:foo} {3:│} | + bar {2:foo} baz {3:│} | + {3:│} | + {1:~ }{3:│} | {5:[No Name] [+] }{3:term }| /foo^ | ]], { [1] = {bold = true, foreground = Screen.colors.Blue1}, diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua index cf22bb0a6f..1c8854bb28 100644 --- a/test/functional/ui/wildmode_spec.lua +++ b/test/functional/ui/wildmode_spec.lua @@ -95,10 +95,12 @@ describe("'wildmenu'", function() feed([[<C-\><C-N>gg]]) feed([[:sign <Tab>]]) -- Invoke wildmenu. + -- NB: in earlier versions terminal output was redrawn during cmdline mode. + -- For now just assert that the screen remains unchanged. expect_stay_unchanged{grid=[[ - foo | - foo | - foo | + | + | + | define jump list > | :sign define^ | ]]} |