]> git.eshelyaron.com Git - emacs.git/commit
Add some more mailcap tests.
authorTassilo Horn <tsdh@gnu.org>
Sat, 15 Jan 2022 22:59:20 +0000 (23:59 +0100)
committerTassilo Horn <tsdh@gnu.org>
Sat, 15 Jan 2022 23:21:17 +0000 (00:21 +0100)
commit77d823794eacd73469d32fe780b7dd4eae213b34
treec51f002dd142cc59635eed8268612784901e658a
parent791694c5fe86b8c9ab5cb593bd5e050aa185aa3a
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.
test/lisp/net/mailcap-resources/mailcap [new file with mode: 0644]
test/lisp/net/mailcap-resources/test.test [new file with mode: 0644]
test/lisp/net/mailcap-tests.el