Mercurial > vim
comparison src/testdir/test_mapping.vim @ 25969:a5a772dace5b v8.2.3518
patch 8.2.3518: Test_xrestore sometimes fails
Commit: https://github.com/vim/vim/commit/f08b0eb8691ff09f98bc4beef986ece1c521655f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 16 13:00:14 2021 +0100
patch 8.2.3518: Test_xrestore sometimes fails
Problem: Test_xrestore sometimes fails.
Solution: Mark the test as flayky. Move marking test as flaky to the test
instead of listing them in runtest.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 16 Oct 2021 14:15:04 +0200 |
parents | 1186160ecf57 |
children | 3f209f13883d |
comparison
equal
deleted
inserted
replaced
25968:c506b33fff84 | 25969:a5a772dace5b |
---|---|
287 endfunc | 287 endfunc |
288 | 288 |
289 func Test_map_timeout_with_timer_interrupt() | 289 func Test_map_timeout_with_timer_interrupt() |
290 CheckFeature job | 290 CheckFeature job |
291 CheckFeature timers | 291 CheckFeature timers |
292 let g:test_is_flaky = 1 | |
292 | 293 |
293 " Confirm the timer invoked in exit_cb of the job doesn't disturb mapped key | 294 " Confirm the timer invoked in exit_cb of the job doesn't disturb mapped key |
294 " sequence. | 295 " sequence. |
295 new | 296 new |
296 let g:val = 0 | 297 let g:val = 0 |
1153 | 1154 |
1154 call setline(1, ['some short lines', 'of test text']) | 1155 call setline(1, ['some short lines', 'of test text']) |
1155 call feedkeys("v\<F4>", 'xt!') | 1156 call feedkeys("v\<F4>", 'xt!') |
1156 call assert_equal(['v', 1, 12], [mode(1), col('v'), col('.')]) | 1157 call assert_equal(['v', 1, 12], [mode(1), col('v'), col('.')]) |
1157 | 1158 |
1158 " can invoke an opeartor, ending the visual mode | 1159 " can invoke an operator, ending the visual mode |
1159 let @a = '' | 1160 let @a = '' |
1160 call feedkeys("\<F5>", 'xt!') | 1161 call feedkeys("\<F5>", 'xt!') |
1161 call assert_equal('n', mode(1)) | 1162 call assert_equal('n', mode(1)) |
1162 call assert_equal('some short l', @a) | 1163 call assert_equal('some short l', @a) |
1163 | 1164 |