comparison src/testdir/test_vim9_import.vim @ 29810:761631155a90 v9.0.0244

patch 9.0.0244: cannot easily get the list of sourced scripts Commit: https://github.com/vim/vim/commit/f768c3d19c518822d89dec4cc3947ddeea249316 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Aug 22 13:15:13 2022 +0100 patch 9.0.0244: cannot easily get the list of sourced scripts Problem: Cannot easily get the list of sourced scripts. Solution: Add the getscriptinfo() function. (Yegappan Lakshmanan, closes #10957)
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Aug 2022 14:30:04 +0200
parents 8890460143c9
children 6b7020f3d856
comparison
equal deleted inserted replaced
29809:7847804c8a72 29810:761631155a90
730 END 730 END
731 writefile(lines, 'Xmapscript.vim') 731 writefile(lines, 'Xmapscript.vim')
732 732
733 source Xmapscript.vim 733 source Xmapscript.vim
734 assert_match('\d\+ A: .*XrelautoloadExport.vim', execute('scriptnames')->split("\n")[-1]) 734 assert_match('\d\+ A: .*XrelautoloadExport.vim', execute('scriptnames')->split("\n")[-1])
735 assert_match('XrelautoloadExport.vim$', getscriptinfo()[-1].name)
736 assert_true(getscriptinfo()[-1].autoload)
735 feedkeys("\<F3>", "xt") 737 feedkeys("\<F3>", "xt")
736 assert_equal(42, g:result) 738 assert_equal(42, g:result)
737 739
738 unlet g:result 740 unlet g:result
739 delete('XrelautoloadExport.vim') 741 delete('XrelautoloadExport.vim')