comparison src/testdir/test_netbeans.vim @ 10162:663ef672c4b9 v7.4.2351

commit https://github.com/vim/vim/commit/ff330ff2c4500dc5535631418d601194654e4536 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 9 15:31:34 2016 +0200 patch 7.4.2351 Problem: Netbeans test fails when run from unpacked MS-Windows sources. Solution: Open README.txt instead of Makefile.
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Sep 2016 15:45:07 +0200
parents c2968473c8dc
children a92c4abb8c1f
comparison
equal deleted inserted replaced
10161:eeb7286ab81e 10162:663ef672c4b9
21 call delete("Xnetbeans") 21 call delete("Xnetbeans")
22 exe 'nbstart :localhost:' . a:port . ':bunny' 22 exe 'nbstart :localhost:' . a:port . ':bunny'
23 call assert_true(has("netbeans_enabled")) 23 call assert_true(has("netbeans_enabled"))
24 24
25 call WaitFor('len(readfile("Xnetbeans")) > 2') 25 call WaitFor('len(readfile("Xnetbeans")) > 2')
26 split +$ Makefile 26 split +$ README.txt
27 27
28 " Opening Makefile will result in a setDot command 28 " Opening README.txt will result in a setDot command
29 call WaitFor('len(readfile("Xnetbeans")) > 4') 29 call WaitFor('len(readfile("Xnetbeans")) > 4')
30 call WaitFor('getcurpos()[1] == 2') 30 call WaitFor('getcurpos()[1] == 2')
31 let pos = getcurpos() 31 let pos = getcurpos()
32 call assert_equal(2, pos[1]) 32 call assert_equal(3, pos[1])
33 call assert_equal(20, pos[2]) 33 call assert_equal(20, pos[2])
34 close 34 close
35 nbclose 35 nbclose
36 36
37 call WaitFor('len(readfile("Xnetbeans")) > 6') 37 call WaitFor('len(readfile("Xnetbeans")) > 6')
38 let lines = readfile("Xnetbeans") 38 let lines = readfile("Xnetbeans")
39 call assert_equal('AUTH bunny', lines[0]) 39 call assert_equal('AUTH bunny', lines[0])
40 call assert_equal('0:version=0 "2.5"', lines[1]) 40 call assert_equal('0:version=0 "2.5"', lines[1])
41 call assert_equal('0:startupDone=0', lines[2]) 41 call assert_equal('0:startupDone=0', lines[2])
42 call assert_equal('0:fileOpened=0 "Makefile" T F', substitute(lines[3], '".*/', '"', '')) 42 call assert_equal('0:fileOpened=0 "README.txt" T F', substitute(lines[3], '".*/', '"', ''))
43 43
44 call assert_equal('0:disconnect=1', lines[6]) 44 call assert_equal('0:disconnect=1', lines[6])
45 45
46 call delete("Xnetbeans") 46 call delete("Xnetbeans")
47 endfunc 47 endfunc