Mercurial > vim
annotate src/testdir/test_plus_arg_edit.vim @ 12574:575d530df053 v8.0.1165
patch 8.0.1165: popup test is still flaky
commit https://github.com/vim/vim/commit/f52c38315669f85bbcf3bd74c590148bf588f6c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 30 16:49:19 2017 +0200
patch 8.0.1165: popup test is still flaky
Problem: Popup test is still flaky.
Solution: Add a term_wait() call. (Ozaki Kiichi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Sep 2017 17:00:04 +0200 |
parents | 140d51d5b5c3 |
children | 9e04de2aa738 |
rev | line source |
---|---|
11651
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for complicated + argument to :edit command |
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 function Test_edit() |
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 call writefile(["foo|bar"], "Xfile1") |
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 call writefile(["foo/bar"], "Xfile2") |
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 edit +1|s/|/PIPE/|w Xfile1| e Xfile2|1 | s/\//SLASH/|w |
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 call assert_equal(["fooPIPEbar"], readfile("Xfile1")) |
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 call assert_equal(["fooSLASHbar"], readfile("Xfile2")) |
140d51d5b5c3
patch 8.0.0708: some tests are old style
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 endfunction |