aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/arglist_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/arglist_spec.lua')
-rw-r--r--test/functional/legacy/arglist_spec.lua30
1 files changed, 16 insertions, 14 deletions
diff --git a/test/functional/legacy/arglist_spec.lua b/test/functional/legacy/arglist_spec.lua
index 3e78d7ca5f..ac2a39a381 100644
--- a/test/functional/legacy/arglist_spec.lua
+++ b/test/functional/legacy/arglist_spec.lua
@@ -1,11 +1,13 @@
-- Test argument list commands
-local helpers = require('test.functional.helpers')(after_each)
+local t = require('test.testutil')
+local n = require('test.functional.testnvim')()
local Screen = require('test.functional.ui.screen')
-local clear, command, eq = helpers.clear, helpers.command, helpers.eq
-local expect_exit = helpers.expect_exit
-local feed = helpers.feed
-local pcall_err = helpers.pcall_err
+
+local clear, command, eq = n.clear, n.command, t.eq
+local expect_exit = n.expect_exit
+local feed = n.feed
+local pcall_err = t.pcall_err
describe('argument list commands', function()
before_each(clear)
@@ -24,26 +26,26 @@ describe('argument list commands', function()
feed(':confirm quit\n')
screen:expect([[
|
- ~ |
- |
+ {1:~ }|
+ {3: }|
:confirm quit |
- 2 more files to edit. Quit anyway? |
- [Y]es, (N)o: ^ |
+ {6:2 more files to edit. Quit anyway?} |
+ {6:[Y]es, (N)o: }^ |
]])
feed('N')
screen:expect([[
^ |
- ~ |*4
+ {1:~ }|*4
|
]])
feed(':confirm quit\n')
screen:expect([[
|
- ~ |
- |
+ {1:~ }|
+ {3: }|
:confirm quit |
- 2 more files to edit. Quit anyway? |
- [Y]es, (N)o: ^ |
+ {6:2 more files to edit. Quit anyway?} |
+ {6:[Y]es, (N)o: }^ |
]])
expect_exit(1000, feed, 'Y')
end)