diff options
author | Tassilo Horn <tsdh@gnu.org> | 2022-01-15 23:59:20 +0100 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2022-01-16 00:21:17 +0100 |
commit | 77d823794eacd73469d32fe780b7dd4eae213b34 (patch) | |
tree | c51f002dd142cc59635eed8268612784901e658a /test/lisp/net/mailcap-resources/mailcap | |
parent | 791694c5fe86b8c9ab5cb593bd5e050aa185aa3a (diff) | |
download | emacs-77d823794eacd73469d32fe780b7dd4eae213b34.tar.gz emacs-77d823794eacd73469d32fe780b7dd4eae213b34.tar.bz2 emacs-77d823794eacd73469d32fe780b7dd4eae213b34.zip |
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.
Diffstat (limited to 'test/lisp/net/mailcap-resources/mailcap')
-rw-r--r-- | test/lisp/net/mailcap-resources/mailcap | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/net/mailcap-resources/mailcap b/test/lisp/net/mailcap-resources/mailcap new file mode 100644 index 00000000000..ad3f7404fda --- /dev/null +++ b/test/lisp/net/mailcap-resources/mailcap @@ -0,0 +1,9 @@ +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 |