Source

frawor / test / rtp / plugin / require-feature.vim

execute frawor#Setup('0.0', {'@frawor': '0.1'})
function s:F.main()
    call WriteFile('Entered s:F.main()')
    runtime plugin/twoload-plugin-with-feature-2.vim
    call WriteFile('Has run :runtime')
    call FraworLoad('@twoload-plugin-with-feature-3')
    call WriteFile('Has run FraworLoad')
    call WriteFile('require tpwf1: '.s:_f.require('@twoload-plugin-with-feature-1', [0, 0], 0))
    call WriteFile('require tpwf2: '.s:_f.require('@twoload-plugin-with-feature-2', [0, 0], 0))
    call WriteFile('require tpwf3: '.s:_f.require('@twoload-plugin-with-feature-3', [0, 0], 0))
    call WriteFile('require pwf: '.s:_f.require('@plugin-with-feature',             [0, 0], 0))
    call WriteFile(sort(keys(s:_f)))
    call WriteFile('require xup: '.s:_f.require('@xxx-unexistent-plugin',           [0, 0], 0))
    call WriteFile('require xup: '.s:_f.require('@xxx-unexistent-plugin',           [0, 0], 1))
endfunction
call WriteFile(sort(keys(s:_f)))
call s:F.main()