emacs/test/lisp/net/mailcap-resources/mailcap
Tassilo Horn 77d823794e Add some more mailcap tests.
* test/lisp/net/mailcap-resources/mailcap: New file.
* test/lisp/net/mailcap-resources/test.test: New file.
* test/lisp/net/mailcap-tests.el (with-pristine-mailcap): New macro.
(mailcap-parsing-and-mailcap-mime-info): New test for parsing mailcap
files and selecting the right viewer.
(mailcap--test-result): New variable.
(mailcap--test-viewer): New function.
(mailcap-view-file): New test for mailcap-view-file.
2022-01-16 00:21:17 +01:00

9 lines
223 B
Text

audio/ogg; mpv %s
audio/flac; mpv %s
audio/x-wav; aplay %s
text/*; emacsclient -t %s
application/pdf; acroread %s; test=false
application/pdf; evince %s
application/pdf; okular %s
image/*; eog %s
image/svg+xml; inkscape %s