diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-26 21:22:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-26 21:22:07 +0100 |
commit | 10efcd5b0259659cd9a152a7a342deb5d56a8eb5 (patch) | |
tree | b5698e9fd8a8edf4c6b97908740ae91ae1204948 /src/testdir/test_netbeans.vim | |
parent | 1341024e0823d9aa9cde08d6b55e12f2d90ff778 (diff) | |
download | vim-git-10efcd5b0259659cd9a152a7a342deb5d56a8eb5.tar.gz |
patch 8.1.0549: netbeans test depends on README.txt contentsv8.1.0549
Problem: Netbeans test depends on README.txt contents.
Solution: Use a generated file instead.
Diffstat (limited to 'src/testdir/test_netbeans.vim')
-rw-r--r-- | src/testdir/test_netbeans.vim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testdir/test_netbeans.vim b/src/testdir/test_netbeans.vim index aa4e67661..66177ada7 100644 --- a/src/testdir/test_netbeans.vim +++ b/src/testdir/test_netbeans.vim @@ -20,13 +20,14 @@ endfunc func Nb_basic(port) call delete("Xnetbeans") call writefile([], "Xnetbeans") + call writefile(repeat(['abcdefghijklmnopqrstuvwxyz'], 5), "XREADME.txt") exe 'nbstart :localhost:' . a:port . ':bunny' call assert_true(has("netbeans_enabled")) call WaitFor('len(readfile("Xnetbeans")) > 2') - split +$ README.txt + split +$ XREADME.txt - " Opening README.txt will result in a setDot command + " Opening XREADME.txt will result in a setDot command call WaitFor('len(readfile("Xnetbeans")) > 4') call WaitFor('getcurpos()[1] == 3') let pos = getcurpos() @@ -41,11 +42,12 @@ func Nb_basic(port) call assert_equal('AUTH bunny', lines[0]) call assert_equal('0:version=0 "2.5"', lines[1]) call assert_equal('0:startupDone=0', lines[2]) - call assert_equal('0:fileOpened=0 "README.txt" T F', substitute(lines[3], '".*/', '"', '')) + call assert_equal('0:fileOpened=0 "XREADME.txt" T F', substitute(lines[3], '".*/', '"', '')) call assert_equal('0:disconnect=1', lines[6]) call delete("Xnetbeans") + call delete("XREADME.txt") endfunc func Test_nb_basic() |