Source

frawor / test / rtp / plugin / twoload-plugin-with-feature-after-registration-1.vim

Full commit
if !exists('s:_pluginloaded')
    execute frawor#Setup('0.0', {}, 0)
    call WriteFile('Registered '.s:_frawor.id)
    let s:testfeature={}
    function s:testfeature.depadd(plugdict, fdict, dplid)
        call WriteFile('feature-depadd: '.s:_frawor.id.' '.a:dplid)
    endfunction
    function s:testfeature.load(plugdict, fdict)
        call WriteFile('feature-load: '.s:_frawor.id)
    endfunction
    function s:testfeature.register(plugdict, fdict)
        call WriteFile('feature-register: '.s:_frawor.id)
    endfunction
    function s:testfeature.unload(plugdict, fdict)
        call WriteFile('feature-unload: '.s:_frawor.id)
    endfunction
    function s:testfeature.unloadpre(plugdict, fdict)
        call WriteFile('feature-unloadpre: '.s:_frawor.id)
    endfunction
    call s:_f.newfeature('testfeaturea'.s:_frawor.id[-1:], s:testfeature)
    finish
elseif s:_pluginloaded
    finish
endif
call WriteFile('Loaded '.s:_frawor.id)