From: Stefan Kangas Date: Mon, 3 Jan 2022 20:40:38 +0000 (+0100) Subject: New test shortdoc-all-groups-work X-Git-Tag: emacs-29.0.90~3280 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5c63786cb9873ab2b61b5ad511c84df9cd56ce87;p=emacs.git New test shortdoc-all-groups-work * test/lisp/emacs-lisp/shortdoc-tests.el (shortdoc-all-groups-work): New test. See Bug#52969. --- diff --git a/test/lisp/emacs-lisp/shortdoc-tests.el b/test/lisp/emacs-lisp/shortdoc-tests.el index 1c4125e3010..326d43eead4 100644 --- a/test/lisp/emacs-lisp/shortdoc-tests.el +++ b/test/lisp/emacs-lisp/shortdoc-tests.el @@ -44,6 +44,14 @@ (should (shortdoc-tests--tree-contains expr fun)))) (setq props (cddr props)))))))) +(ert-deftest shortdoc-all-groups-work () + "Test that all defined shortdoc groups display correctly." + (dolist (group (mapcar (lambda (x) (car x)) shortdoc--groups)) + (unwind-protect + (shortdoc-display-group group) + (when-let ((buf (get-buffer (format "*Shortdoc %s*" group)))) + (kill-buffer buf))))) + (provide 'shortdoc-tests) ;;; shortdoc-tests.el ends here