Mercurial > vim
annotate src/testdir/test_version.vim @ 24982:4cb423b9250d v8.2.3028
patch 8.2.3028: GUI mouse events not tested
Commit: https://github.com/vim/vim/commit/f1e7449d567c630601aa0cec6c663b791785a668
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Mon Jun 21 18:44:26 2021 +0200
patch 8.2.3028: GUI mouse events not tested
Problem: GUI mouse events not tested.
Solution: Add test_gui_mouse_event(). Add mouse tests. Also add a few
viminfo tests. (Yegappan Lakshmanan, closes #8407)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 21 Jun 2021 18:45:04 +0200 |
parents | dfdd973cf0c9 |
children |
rev | line source |
---|---|
20035
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 " Test :version Ex command |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
2 |
23913
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
3 so check.vim |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
4 so shared.vim |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
5 |
20035
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 func Test_version() |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
7 " version should always return the same string. |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 let v1 = execute('version') |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 let v2 = execute('version') |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 call assert_equal(v1, v2) |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
12 call assert_match("^\n\nVIM - Vi IMproved .*", v1) |
4c9acbd6b3c7
patch 8.2.0573: using :version twice leaks memory
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
13 endfunc |
21765
08940efa6b4e
patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents:
20035
diff
changeset
|
14 |
23913
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
15 func Test_version_redirect() |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
16 CheckNotGui |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
17 CheckCanRunGui |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
18 CheckUnix |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
19 |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
20 call RunVim([], [], '--clean -g --version >Xversion 2>&1') |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
21 call assert_match('Features included', readfile('Xversion')->join()) |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
22 |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
23 call delete('Xversion') |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
24 endfunc |
dfdd973cf0c9
patch 8.2.2499: "vim -g --version" does not redirect output
Bram Moolenaar <Bram@vim.org>
parents:
21765
diff
changeset
|
25 |
21765
08940efa6b4e
patch 8.2.1432: various inconsistencies in test files
Bram Moolenaar <Bram@vim.org>
parents:
20035
diff
changeset
|
26 " vim: shiftwidth=2 sts=2 expandtab |