ZyX_I avatar ZyX_I committed b3b3291

Added ignoredeps-feature test

Comments (0)

Files changed (4)

test/ignoredeps-feature.in

+:let &rtp.=",".escape($TESTDIR, ',\').'/rtp'
+:let g:testfile="plugin/ignoredeps-feature.vim"
+:source test.vim

test/ignoredeps-feature.ok

+load: plugin/frawor
+load: plugin/writefile-feature
+load: plugin/ignoredeps-feature

test/rtp/plugin/ignoredeps-feature.vim

+execute frawor#Setup('0.0', {'plugin/writefile-feature': '0'}, 1)
+function s:F.testfeaturecons(plugdict)
+    call s:F._frawor.writefile('cons: '.a:plugdict.id)
+endfunction
+function s:F.testfeatureload(plugdict)
+    call s:F._frawor.writefile('load: '.a:plugdict.id)
+endfunction
+function s:F.testfeatureunload(plugdict)
+    call s:F._frawor.writefile('unload: '.a:plugdict.id)
+endfunction
+function s:F.testfeatureunloadpre(plugdict)
+    call s:F._frawor.writefile('unloadpre: '.a:plugdict.id)
+endfunction
+call s:F._frawor.newfeature('testfeature', {'cons': s:F.testfeaturecons,
+            \                               'load': s:F.testfeatureload,
+            \                             'unload': s:F.testfeatureunload,
+            \                          'unloadpre': s:F.testfeatureunloadpre,
+            \                         'ignoredeps': 1,})
+

test/rtp/plugin/writefile-feature.vim

+execute frawor#Setup('0.0', {'plugin/writefile-feature': '0'}, 1)
+function s:F.writefile(plugdict, ...)
+    let r=[]
+    if filereadable(g:outfile)
+        let r+=readfile(g:outfile, 'b')
+    endif
+    let r+=a:000
+    return writefile(r, g:outfile, 'b')
+endfunction
+call s:F._frawor.newfeature('writefile', {'cons': s:F.writefile})
+
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.