mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
move test
This commit is contained in:
parent
e867ac3e52
commit
4556bb90fa
@ -1052,3 +1052,37 @@ describe('ui/msg_puts_printf', function()
|
|||||||
os.execute('cmake -E remove_directory '..test_build_dir..'/share')
|
os.execute('cmake -E remove_directory '..test_build_dir..'/share')
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
describe('pager', function()
|
||||||
|
local screen
|
||||||
|
|
||||||
|
before_each(function()
|
||||||
|
clear()
|
||||||
|
screen = Screen.new(25, 5)
|
||||||
|
screen:attach()
|
||||||
|
screen:set_default_attr_ids({
|
||||||
|
[1] = {bold = true, foreground = Screen.colors.Blue1},
|
||||||
|
[4] = {bold = true, foreground = Screen.colors.SeaGreen4},
|
||||||
|
})
|
||||||
|
end)
|
||||||
|
|
||||||
|
it('can be quit', function()
|
||||||
|
command("set more")
|
||||||
|
feed(':echon join(map(range(0, &lines*2), "v:val"), "\\n")<cr>')
|
||||||
|
screen:expect{grid=[[
|
||||||
|
0 |
|
||||||
|
1 |
|
||||||
|
2 |
|
||||||
|
3 |
|
||||||
|
{4:-- More --}^ |
|
||||||
|
]]}
|
||||||
|
feed('q')
|
||||||
|
screen:expect{grid=[[
|
||||||
|
^ |
|
||||||
|
{1:~ }|
|
||||||
|
{1:~ }|
|
||||||
|
{1:~ }|
|
||||||
|
|
|
||||||
|
]]}
|
||||||
|
end)
|
||||||
|
end)
|
||||||
|
@ -951,46 +951,6 @@ local function screen_tests(linegrid)
|
|||||||
|
|
|
|
||||||
]])
|
]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe('more prompt', function()
|
|
||||||
it('can be quit', function()
|
|
||||||
command("set more")
|
|
||||||
feed(':echon join(map(range(0, &lines*2), "v:val"), "\\n")<cr>')
|
|
||||||
screen:expect{grid=[[
|
|
||||||
0 |
|
|
||||||
1 |
|
|
||||||
2 |
|
|
||||||
3 |
|
|
||||||
4 |
|
|
||||||
5 |
|
|
||||||
6 |
|
|
||||||
7 |
|
|
||||||
8 |
|
|
||||||
9 |
|
|
||||||
10 |
|
|
||||||
11 |
|
|
||||||
12 |
|
|
||||||
{7:-- More --}^ |
|
|
||||||
]]}
|
|
||||||
feed('q')
|
|
||||||
screen:expect{grid=[[
|
|
||||||
^ |
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
{0:~ }|
|
|
||||||
|
|
|
||||||
]]}
|
|
||||||
end)
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
describe("Screen (char-based)", function()
|
describe("Screen (char-based)", function()
|
||||||
|
Loading…
Reference in New Issue
Block a user