comparison src/testdir/test_syntax.vim @ 18392:e15c1d8a6b99 v8.1.2190

patch 8.1.2190: syntax test fails on Mac Commit: https://github.com/vim/vim/commit/83e9a1ce75818a78c5ddf8dcfb820634ca6fabff Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 14:51:23 2019 +0200 patch 8.1.2190: syntax test fails on Mac Problem: Syntax test fails on Mac. Solution: Limit the window size to 20 rows.
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 15:00:03 +0200
parents c34ee31d0878
children 5bef1043abff
comparison
equal deleted inserted replaced
18391:282ca0ba20f1 18392:e15c1d8a6b99
536 if !CanRunVimInTerminal() 536 if !CanRunVimInTerminal()
537 throw 'Skipped: cannot make screendumps' 537 throw 'Skipped: cannot make screendumps'
538 endif 538 endif
539 call writefile([ 539 call writefile([
540 \ '/* comment line at the top */', 540 \ '/* comment line at the top */',
541 \ ' int', 541 \ 'int main(int argc, char **argv) { // another comment',
542 \ 'main(int argc, char **argv)// another comment',
543 \ '{',
544 \ '#if 0', 542 \ '#if 0',
545 \ ' int not_used;', 543 \ ' int not_used;',
546 \ '#else', 544 \ '#else',
547 \ ' int used;', 545 \ ' int used;',
548 \ '#endif', 546 \ '#endif',
562 560
563 " This makes the default for 'background' use "dark", check that the 561 " This makes the default for 'background' use "dark", check that the
564 " response to t_RB corrects it to "light". 562 " response to t_RB corrects it to "light".
565 let $COLORFGBG = '15;0' 563 let $COLORFGBG = '15;0'
566 564
567 let buf = RunVimInTerminal('Xtest.c', #{rows: 22}) 565 let buf = RunVimInTerminal('Xtest.c', {})
568 call term_sendkeys(buf, ":syn keyword Search Note\r") 566 call term_sendkeys(buf, ":syn keyword Search Note\r")
569 call term_sendkeys(buf, ":syn match Error /^\\s\\+$/\r") 567 call term_sendkeys(buf, ":syn match Error /^\\s\\+$/\r")
570 call term_sendkeys(buf, ":set hlsearch\r") 568 call term_sendkeys(buf, ":set hlsearch\r")
571 call term_sendkeys(buf, "/endif\r") 569 call term_sendkeys(buf, "/endif\r")
572 call term_sendkeys(buf, "vjfC") 570 call term_sendkeys(buf, "vjfC")