aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStefan Kangas2025-02-10 22:31:26 +0100
committerStefan Kangas2025-02-11 01:14:32 +0100
commit7fbdad01e510984e9166191191a9046a065dffd9 (patch)
tree0688b2fba46ce0a54fdd6c2d25d79cc202017c36 /test
parent467a88394f8d7fe545bd236586a9a3ed991ab9dc (diff)
downloademacs-7fbdad01e510984e9166191191a9046a065dffd9.tar.gz
emacs-7fbdad01e510984e9166191191a9046a065dffd9.zip
; Move describe-symbol test to its proper section
* test/lisp/help-fns-tests.el (help-fns-test-dangling-alias): Move test to its proper section.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/help-fns-tests.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/test/lisp/help-fns-tests.el b/test/lisp/help-fns-tests.el
index 2429cd73513..8f04669f447 100644
--- a/test/lisp/help-fns-tests.el
+++ b/test/lisp/help-fns-tests.el
@@ -89,11 +89,6 @@ Return first line of the output of (describe-function-1 FUNC)."
89 "No error when describing `menu-bar-open-mouse'." 89 "No error when describing `menu-bar-open-mouse'."
90 (should (stringp (help-fns-tests--describe-function 'menu-bar-open-mouse)))) 90 (should (stringp (help-fns-tests--describe-function 'menu-bar-open-mouse))))
91 91
92(ert-deftest help-fns-test-dangling-alias ()
93 "Make sure we don't burp on bogus aliases."
94 (let ((f (make-symbol "bogus-alias")))
95 (define-obsolete-function-alias f 'help-fns-test--undefined-function "past")
96 (describe-symbol f)))
97 92
98;;; Test describe-function over functions with funny names 93;;; Test describe-function over functions with funny names
99(defun abc\\\[universal-argument\]b\`c\'d\\e\"f (x) 94(defun abc\\\[universal-argument\]b\`c\'d\\e\"f (x)
@@ -131,12 +126,18 @@ Return first line of the output of (describe-function-1 FUNC)."
131 (goto-char (point-min)) 126 (goto-char (point-min))
132 (should (looking-at "^font-lock-comment-face is ")))) 127 (should (looking-at "^font-lock-comment-face is "))))
133 128
134(defvar foo-test-map) 129(ert-deftest help-fns-test-dangling-alias ()
135(defvar help-fns-test--describe-keymap-foo) 130 "Make sure we don't burp on bogus aliases."
131 (let ((f (make-symbol "bogus-alias")))
132 (define-obsolete-function-alias f 'help-fns-test--undefined-function "past")
133 (describe-symbol f)))
136 134
137 135
138;;; Tests for describe-keymap 136;;; Tests for describe-keymap
139 137
138(defvar foo-test-map)
139(defvar help-fns-test--describe-keymap-foo)
140
140(defvar-keymap help-fns-test-map 141(defvar-keymap help-fns-test-map
141 "a" 'test-cmd-a 142 "a" 'test-cmd-a
142 "b" 'test-cmd-b 143 "b" 'test-cmd-b