mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	test(ui/fold_spec): more testing for clicking on 'foldcolumn' (#25225)
This commit is contained in:
		| @@ -424,8 +424,82 @@ describe("folded lines", function() | |||||||
|         ]]) |         ]]) | ||||||
|       end |       end | ||||||
|  |  | ||||||
|  |       if multigrid then | ||||||
|  |         meths.input_mouse('left', 'press', '', 2, 0, 0) | ||||||
|  |         screen:expect([[ | ||||||
|  |         ## grid 1 | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [3:---------------------------------------------]| | ||||||
|  |         ## grid 2 | ||||||
|  |           {7:▸ }{5:^+--  6 lines: aa···························}| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |         ## grid 3 | ||||||
|  |           :set norightleft                             | | ||||||
|  |         ]]) | ||||||
|  |       else | ||||||
|  |         meths.input_mouse('left', 'press', '', 0, 0, 0) | ||||||
|  |         screen:expect([[ | ||||||
|  |           {7:▸ }{5:^+--  6 lines: aa···························}| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           :set norightleft                             | | ||||||
|  |         ]]) | ||||||
|  |       end | ||||||
|  |  | ||||||
|       -- Add a winbar to avoid double-clicks |       -- Add a winbar to avoid double-clicks | ||||||
|       command('setlocal winbar=!!!!!!') |       command('setlocal winbar=!!!!!!') | ||||||
|  |       if multigrid then | ||||||
|  |         meths.input_mouse('left', 'press', '', 2, 1, 0) | ||||||
|  |         screen:expect([[ | ||||||
|  |         ## grid 1 | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [2:---------------------------------------------]| | ||||||
|  |           [3:---------------------------------------------]| | ||||||
|  |         ## grid 2 | ||||||
|  |           {11:!!!!!!                                       }| | ||||||
|  |           {7:▾▸}{5:^+---  5 lines: aa··························}| | ||||||
|  |           {7:│ }ff                                         | | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |         ## grid 3 | ||||||
|  |           :set norightleft                             | | ||||||
|  |         ]]) | ||||||
|  |       else | ||||||
|  |         meths.input_mouse('left', 'press', '', 0, 1, 0) | ||||||
|  |         screen:expect([[ | ||||||
|  |           {11:!!!!!!                                       }| | ||||||
|  |           {7:▾▸}{5:^+---  5 lines: aa··························}| | ||||||
|  |           {7:│ }ff                                         | | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           {1:~                                            }| | ||||||
|  |           :set norightleft                             | | ||||||
|  |         ]]) | ||||||
|  |       end | ||||||
|  |  | ||||||
|       if multigrid then |       if multigrid then | ||||||
|         meths.input_mouse('left', 'press', '', 2, 1, 1) |         meths.input_mouse('left', 'press', '', 2, 1, 1) | ||||||
|         screen:expect([[ |         screen:expect([[ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 zeertzjq
					zeertzjq