Mercurial > vim
comparison src/testdir/test_gui.vim @ 28887:0e207ddd939d v8.2.4966
patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event
Commit: https://github.com/vim/vim/commit/e5162e76c0a8bd71fbfb0840a8c0014788d8808b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 16 16:41:35 2022 +0100
patch 8.2.4966: MS-Windows GUI: mouse event test gets extra event
Problem: MS-Windows GUI: mouse event test gets extra event.
Solution: Ignore one move event.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 16 May 2022 17:45:03 +0200 |
parents | 947b7d061b07 |
children | d401ff43cd5f |
comparison
equal
deleted
inserted
replaced
28886:61caad159521 | 28887:0e207ddd939d |
---|---|
1249 call feedkeys('', 'Lx!') | 1249 call feedkeys('', 'Lx!') |
1250 | 1250 |
1251 call extend(args, #{row: 10, col: 30, cell: v:true}) | 1251 call extend(args, #{row: 10, col: 30, cell: v:true}) |
1252 call test_gui_event('mouse', args) | 1252 call test_gui_event('mouse', args) |
1253 call feedkeys('', 'Lx!') | 1253 call feedkeys('', 'Lx!') |
1254 | |
1255 if has('win32') | |
1256 " FIXME: on MS-Windows we get a stray event first | |
1257 let g:eventlist = g:eventlist[1 : ] | |
1258 endif | |
1254 | 1259 |
1255 call assert_equal([#{row: 4, col: 31}, #{row: 11, col: 31}], g:eventlist) | 1260 call assert_equal([#{row: 4, col: 31}, #{row: 11, col: 31}], g:eventlist) |
1256 | 1261 |
1257 " wiggle the mouse around within a screen cell, shouldn't trigger events | 1262 " wiggle the mouse around within a screen cell, shouldn't trigger events |
1258 call extend(args, #{cell: v:false}) | 1263 call extend(args, #{cell: v:false}) |