summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.1051
blob: 8ac7eca8e88d467c7f6b81e532d2661adf0a0057 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
To: vim_dev@googlegroups.com
Subject: Patch 8.1.1051
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.1051
Problem:    Not all ways to switch terminal mode are tested.
Solution:   Add more test cases.
Files:	    src/testdir/test_terminal.vim


*** ../vim-8.1.1050/src/testdir/test_terminal.vim	2019-02-25 06:11:19.026193863 +0100
--- src/testdir/test_terminal.vim	2019-03-25 22:59:23.369949783 +0100
***************
*** 1772,1777 ****
--- 1772,1800 ----
    bwipe!
  endfunc
  
+ func Test_terminal_switch_mode()
+   term
+   let bnr = bufnr('$')
+   call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))})
+   call feedkeys("\<C-W>N", 'xt')
+   call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))})
+   call feedkeys("A", 'xt')
+   call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))})
+   call feedkeys("\<C-W>N", 'xt')
+   call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))})
+   call feedkeys("I", 'xt')
+   call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))})
+   call feedkeys("\<C-W>Nv", 'xt')
+   call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))})
+   call feedkeys("I", 'xt')
+   call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))})
+   call feedkeys("\<C-W>Nv", 'xt')
+   call WaitForAssert({-> assert_equal('running,normal', term_getstatus(bnr))})
+   call feedkeys("A", 'xt')
+   call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))})
+   bwipe!
+ endfunc
+ 
  func Test_terminal_hidden_and_close()
    if !has('unix')
      return
*** ../vim-8.1.1050/src/version.c	2019-03-25 22:48:14.699379700 +0100
--- src/version.c	2019-03-25 23:01:08.869101987 +0100
***************
*** 777,778 ****
--- 777,780 ----
  {   /* Add new patch number below this line */
+ /**/
+     1051,
  /**/

-- 
~
~
~
".signature" 4 lines, 50 characters written

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///