Commits

ZyX_I committed 569911b

Made invalid-FraworRegister-arguments also check for d_* errors

Comments (0)

Files changed (4)

plugin/frawor.vim

     echohl ErrorMsg
     for msgline in split(message, "\n", 1)
         if empty(msgline)
+            echohl None
             echomsg " "
+            echohl ErrorMsg
         else
             echomsg msgline
         endif

test/invalid-FraworRegister-arguments.in

 :let &rtp.=",".escape($TESTDIR, ',\').'/rtp'
-:let g:testfile="plugin/invalid-FraworRegister-arguments.1.vim"
-:source test.vim
-:let g:testfile="plugin/invalid-FraworRegister-arguments.2.vim"
-:source test.vim
-:let g:testfile="plugin/invalid-FraworRegister-arguments.3.vim"
-:source test.vim
-:let g:testfile="plugin/invalid-FraworRegister-arguments.4.vim"
-:source test.vim
-:let g:testfile="plugin/invalid-FraworRegister-arguments.5.vim"
-:source test.vim
-:let g:testfile="plugin/invalid-FraworRegister-arguments.6.vim"
-:source test.vim
-:let g:testfile="plugin/invalid-FraworRegister-arguments.7.vim"
-:source test.vim
+:let i=1
+:while filereadable("rtp/plugin/invalid-FraworRegister-arguments.".i.".vim") | let g:testfile="plugin/invalid-FraworRegister-arguments.".i.".vim" | source test.vim | let i+=1 | endwhile

test/invalid-FraworRegister-arguments.ok

 Frawor:plugin/frawor:sidnonpos
 Frawor:plugin/frawor:filenotstr
 Frawor:plugin/frawor:fileempty
-Frawor:plugin/frawor:depnotdict
+Frawor:plugin/frawor:depnotdict
+Frawor:plugin/frawor:d_vernotlist
+Frawor:plugin/frawor:d_vershort
+Frawor:plugin/frawor:d_vernotnum
 let g:outfile=g:curtest.'.out'
-function WriteFile(...)
-    let r=[]
-    if filereadable(g:outfile)
-        let r+=readfile(g:outfile, 'b')
-    endif
-    let r+=a:000
-    return writefile(r, g:outfile, 'b')
-endfunction
+if !exists('*WriteFile')
+    function WriteFile(...)
+        let r=[]
+        if filereadable(g:outfile)
+            let r+=readfile(g:outfile, 'b')
+        endif
+        let r+=a:000
+        return writefile(r, g:outfile, 'b')
+    endfunction
+endif
 if !exists('g:testcmd')
     let s:testcmd='call FraworLoad(g:testfile[:-5])'
 else
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.