mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	functests: Remove wait() from input_spec
This commit is contained in:
		@@ -2,7 +2,6 @@ local helpers = require('test.functional.helpers')(after_each)
 | 
				
			|||||||
local Screen = require('test.functional.ui.screen')
 | 
					local Screen = require('test.functional.ui.screen')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
local eq = helpers.eq
 | 
					local eq = helpers.eq
 | 
				
			||||||
local wait = helpers.wait
 | 
					 | 
				
			||||||
local feed = helpers.feed
 | 
					local feed = helpers.feed
 | 
				
			||||||
local meths = helpers.meths
 | 
					local meths = helpers.meths
 | 
				
			||||||
local clear = helpers.clear
 | 
					local clear = helpers.clear
 | 
				
			||||||
@@ -229,14 +228,14 @@ describe('input()', function()
 | 
				
			|||||||
       exc_exec('call input("prompt> ", "default", "file", "extra")'))
 | 
					       exc_exec('call input("prompt> ", "default", "file", "extra")'))
 | 
				
			||||||
  end)
 | 
					  end)
 | 
				
			||||||
  it('supports highlighting', function()
 | 
					  it('supports highlighting', function()
 | 
				
			||||||
    feed([[:call input({"highlight": "RainBowParens"})<CR>]])
 | 
					    command('nnoremap <expr> X input({"highlight": "RainBowParens"})[-1]')
 | 
				
			||||||
    wait()
 | 
					    feed([[X]])
 | 
				
			||||||
    feed('(())')
 | 
					    feed('(())')
 | 
				
			||||||
    screen:expect([[
 | 
					    screen:expect([[
 | 
				
			||||||
      {EOB:~                        }|
 | 
					 | 
				
			||||||
      {EOB:~                        }|
 | 
					 | 
				
			||||||
      {EOB:~                        }|
 | 
					 | 
				
			||||||
                               |
 | 
					                               |
 | 
				
			||||||
 | 
					      {EOB:~                        }|
 | 
				
			||||||
 | 
					      {EOB:~                        }|
 | 
				
			||||||
 | 
					      {EOB:~                        }|
 | 
				
			||||||
      {RBP1:(}{RBP2:()}{RBP1:)}^                     |
 | 
					      {RBP1:(}{RBP2:()}{RBP1:)}^                     |
 | 
				
			||||||
    ]])
 | 
					    ]])
 | 
				
			||||||
  end)
 | 
					  end)
 | 
				
			||||||
@@ -408,14 +407,14 @@ describe('inputdialog()', function()
 | 
				
			|||||||
       exc_exec('call inputdialog("prompt> ", "default", "file", "extra")'))
 | 
					       exc_exec('call inputdialog("prompt> ", "default", "file", "extra")'))
 | 
				
			||||||
  end)
 | 
					  end)
 | 
				
			||||||
  it('supports highlighting', function()
 | 
					  it('supports highlighting', function()
 | 
				
			||||||
    feed([[:call inputdialog({"highlight": "RainBowParens"})<CR>]])
 | 
					    command('nnoremap <expr> X inputdialog({"highlight": "RainBowParens"})[-1]')
 | 
				
			||||||
    wait()
 | 
					    feed([[X]])
 | 
				
			||||||
    feed('(())')
 | 
					    feed('(())')
 | 
				
			||||||
    screen:expect([[
 | 
					    screen:expect([[
 | 
				
			||||||
      {EOB:~                        }|
 | 
					 | 
				
			||||||
      {EOB:~                        }|
 | 
					 | 
				
			||||||
      {EOB:~                        }|
 | 
					 | 
				
			||||||
                               |
 | 
					                               |
 | 
				
			||||||
 | 
					      {EOB:~                        }|
 | 
				
			||||||
 | 
					      {EOB:~                        }|
 | 
				
			||||||
 | 
					      {EOB:~                        }|
 | 
				
			||||||
      {RBP1:(}{RBP2:()}{RBP1:)}^                     |
 | 
					      {RBP1:(}{RBP2:()}{RBP1:)}^                     |
 | 
				
			||||||
    ]])
 | 
					    ]])
 | 
				
			||||||
  end)
 | 
					  end)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user