diff options
| author | Glenn Morris | 2018-03-19 16:57:28 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-03-19 16:57:28 -0400 |
| commit | 5c8c8f0a49cf1823bc77db3c27baec6884f4d8d8 (patch) | |
| tree | 241e9c606dfca1071072e8cea4ce13f237e68185 | |
| parent | 7a7ee53dbdcf489050653f04ba3d0c491245c5fa (diff) | |
| download | emacs-5c8c8f0a49cf1823bc77db3c27baec6884f4d8d8.tar.gz emacs-5c8c8f0a49cf1823bc77db3c27baec6884f4d8d8.zip | |
* test/lisp/info-xref-tests.el (info-xref-test-emacs-manuals): New.
| -rw-r--r-- | test/lisp/info-xref-tests.el | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/lisp/info-xref-tests.el b/test/lisp/info-xref-tests.el index 7532befae0a..6d3a4618377 100644 --- a/test/lisp/info-xref-tests.el +++ b/test/lisp/info-xref-tests.el | |||
| @@ -144,4 +144,22 @@ text. | |||
| 144 | (format "%s.info" (file-name-sans-extension | 144 | (format "%s.info" (file-name-sans-extension |
| 145 | tempfile2))))))) | 145 | tempfile2))))))) |
| 146 | 146 | ||
| 147 | (ert-deftest info-xref-test-emacs-manuals () | ||
| 148 | "Test that all internal links in the Emacs manuals work." | ||
| 149 | :tags '(:expensive-test) | ||
| 150 | (require 'info) | ||
| 151 | (let ((default-directory (car (Info-default-dirs))) | ||
| 152 | (Info-directory-list '("."))) | ||
| 153 | (skip-unless (file-readable-p "emacs.info")) | ||
| 154 | (info-xref-check-all) | ||
| 155 | (with-current-buffer info-xref-output-buffer | ||
| 156 | (goto-char (point-max)) | ||
| 157 | (should (search-backward "done" nil t)) | ||
| 158 | (re-search-forward "\\([0-9]+\\) bad" (line-end-position) t) | ||
| 159 | (should (string-match-p | ||
| 160 | " [0-9]\\{3,\\} good, 0 bad" | ||
| 161 | (buffer-substring-no-properties (line-beginning-position) | ||
| 162 | (line-end-position))))))) | ||
| 163 | |||
| 164 | |||
| 147 | ;;; info-xref.el ends here | 165 | ;;; info-xref.el ends here |