diff options
author | ZyX <kp-pav@yandex.ru> | 2017-08-06 14:43:46 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-08-06 14:43:46 +0300 |
commit | efb03903eb667bc14992dffcd77d04385371abed (patch) | |
tree | 2d3ab8a61135468da31af0c7387455530b67155d | |
parent | 4d8ff5ec012cd517cf8010144f158d6f5c96d5bb (diff) | |
download | rneovim-efb03903eb667bc14992dffcd77d04385371abed.tar.gz rneovim-efb03903eb667bc14992dffcd77d04385371abed.tar.bz2 rneovim-efb03903eb667bc14992dffcd77d04385371abed.zip |
functests: Remove wait() from input_spec
-rw-r--r-- | test/functional/eval/input_spec.lua | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/functional/eval/input_spec.lua b/test/functional/eval/input_spec.lua index 0571043efe..5ae23e17d0 100644 --- a/test/functional/eval/input_spec.lua +++ b/test/functional/eval/input_spec.lua @@ -2,7 +2,6 @@ local helpers = require('test.functional.helpers')(after_each) local Screen = require('test.functional.ui.screen') local eq = helpers.eq -local wait = helpers.wait local feed = helpers.feed local meths = helpers.meths local clear = helpers.clear @@ -229,14 +228,14 @@ describe('input()', function() exc_exec('call input("prompt> ", "default", "file", "extra")')) end) it('supports highlighting', function() - feed([[:call input({"highlight": "RainBowParens"})<CR>]]) - wait() + command('nnoremap <expr> X input({"highlight": "RainBowParens"})[-1]') + feed([[X]]) feed('(())') screen:expect([[ + | {EOB:~ }| {EOB:~ }| {EOB:~ }| - | {RBP1:(}{RBP2:()}{RBP1:)}^ | ]]) end) @@ -408,14 +407,14 @@ describe('inputdialog()', function() exc_exec('call inputdialog("prompt> ", "default", "file", "extra")')) end) it('supports highlighting', function() - feed([[:call inputdialog({"highlight": "RainBowParens"})<CR>]]) - wait() + command('nnoremap <expr> X inputdialog({"highlight": "RainBowParens"})[-1]') + feed([[X]]) feed('(())') screen:expect([[ + | {EOB:~ }| {EOB:~ }| {EOB:~ }| - | {RBP1:(}{RBP2:()}{RBP1:)}^ | ]]) end) |