aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2021-11-06 19:35:31 +0100
committerStefan Kangas2021-11-06 19:35:31 +0100
commitb8b0e529a8f1dcea9a219ce8b2f66bb3e0be17bd (patch)
treea6392ed0bcf6e7094ca793816125483f9832bb72
parent83422370c87000f3d6d89320d4947c24325c9ad2 (diff)
downloademacs-b8b0e529a8f1dcea9a219ce8b2f66bb3e0be17bd.tar.gz
emacs-b8b0e529a8f1dcea9a219ce8b2f66bb3e0be17bd.zip
; * test/lisp/help-tests.el: Fix failing tests after recent change.
-rw-r--r--test/lisp/help-tests.el66
1 files changed, 33 insertions, 33 deletions
diff --git a/test/lisp/help-tests.el b/test/lisp/help-tests.el
index 6bafd8e7ddc..a2573c9c8b3 100644
--- a/test/lisp/help-tests.el
+++ b/test/lisp/help-tests.el
@@ -90,16 +90,16 @@
90 90
91(ert-deftest help-tests-substitute-command-keys/keymaps () 91(ert-deftest help-tests-substitute-command-keys/keymaps ()
92 (with-substitute-command-keys-test 92 (with-substitute-command-keys-test
93 (test "\\{minibuffer-local-must-match-map}" 93 (test-re "\\{minibuffer-local-must-match-map}"
94 " 94 "
95Key Binding 95Key Binding
96 96-+
97C-g abort-minibuffers 97C-g abort-minibuffers
98TAB minibuffer-complete 98TAB minibuffer-complete
99C-j minibuffer-complete-and-exit 99C-j minibuffer-complete-and-exit
100RET minibuffer-complete-and-exit 100RET minibuffer-complete-and-exit
101SPC minibuffer-complete-word 101SPC minibuffer-complete-word
102? minibuffer-completion-help 102\\? minibuffer-completion-help
103C-<tab> file-cache-minibuffer-complete 103C-<tab> file-cache-minibuffer-complete
104<XF86Back> previous-history-element 104<XF86Back> previous-history-element
105<XF86Forward> next-history-element 105<XF86Forward> next-history-element
@@ -243,10 +243,10 @@ M-g M-c switch-to-completions
243 (with-substitute-command-keys-test 243 (with-substitute-command-keys-test
244 (with-temp-buffer 244 (with-temp-buffer
245 (help-tests-major-mode) 245 (help-tests-major-mode)
246 (test "\\{help-tests-major-mode-map}" 246 (test-re "\\{help-tests-major-mode-map}"
247 " 247 "
248Key Binding 248Key Binding
249 249-+
250( .. ) short-range 250( .. ) short-range
2511 .. 4 foo-range 2511 .. 4 foo-range
252a .. c foo-other-range 252a .. c foo-other-range
@@ -261,10 +261,10 @@ x foo-original
261 (with-temp-buffer 261 (with-temp-buffer
262 (help-tests-major-mode) 262 (help-tests-major-mode)
263 (help-tests-minor-mode) 263 (help-tests-minor-mode)
264 (test "\\{help-tests-major-mode-map}" 264 (test-re "\\{help-tests-major-mode-map}"
265 " 265 "
266Key Binding 266Key Binding
267 267-+
268( .. ) short-range 268( .. ) short-range
2691 .. 4 foo-range 2691 .. 4 foo-range
270a .. c foo-other-range 270a .. c foo-other-range
@@ -282,10 +282,10 @@ x foo-original
282 (with-temp-buffer 282 (with-temp-buffer
283 (help-tests-major-mode) 283 (help-tests-major-mode)
284 (define-key help-tests-major-mode-map [remap foo] 'bar) 284 (define-key help-tests-major-mode-map [remap foo] 'bar)
285 (test "\\{help-tests-major-mode-map}" 285 (test-re "\\{help-tests-major-mode-map}"
286 " 286 "
287Key Binding 287Key Binding
288 288-+
289<remap> <foo> bar 289<remap> <foo> bar
290"))))) 290")))))
291 291
@@ -298,11 +298,11 @@ Key Binding
298 :enable mark-active 298 :enable mark-active
299 :help "Help text")))))) 299 :help "Help text"))))))
300 (describe-map-tree map nil nil nil nil t nil nil nil) 300 (describe-map-tree map nil nil nil nil t nil nil nil)
301 (should (equal (buffer-string) " 301 (should (string-match "
302Key Binding 302Key Binding
303 303-+
304C-a foo 304C-a foo\n"
305"))))) 305 (buffer-string))))))
306 306
307(ert-deftest help-tests-describe-map-tree/no-menu-nil () 307(ert-deftest help-tests-describe-map-tree/no-menu-nil ()
308 (with-temp-buffer 308 (with-temp-buffer
@@ -313,13 +313,13 @@ C-a foo
313 :enable mark-active 313 :enable mark-active
314 :help "Help text")))))) 314 :help "Help text"))))))
315 (describe-map-tree map nil nil nil nil nil nil nil nil) 315 (describe-map-tree map nil nil nil nil nil nil nil nil)
316 (should (equal (buffer-string) " 316 (should (string-match "
317Key Binding 317Key Binding
318 318-+
319C-a foo 319C-a foo
320 320
321<menu-bar> <foo> foo 321<menu-bar> <foo> foo\n"
322"))))) 322 (buffer-string))))))
323 323
324(ert-deftest help-tests-describe-map-tree/mention-shadow-t () 324(ert-deftest help-tests-describe-map-tree/mention-shadow-t ()
325 (with-temp-buffer 325 (with-temp-buffer
@@ -328,13 +328,13 @@ C-a foo
328 (2 . bar)))) 328 (2 . bar))))
329 (shadow-maps '((keymap . ((1 . baz)))))) 329 (shadow-maps '((keymap . ((1 . baz))))))
330 (describe-map-tree map t shadow-maps nil nil t nil nil t) 330 (describe-map-tree map t shadow-maps nil nil t nil nil t)
331 (should (equal (buffer-string) " 331 (should (string-match "
332Key Binding 332Key Binding
333 333-+
334C-a foo 334C-a foo
335 (this binding is currently shadowed) 335 (this binding is currently shadowed)
336C-b bar 336C-b bar\n"
337"))))) 337 (buffer-string))))))
338 338
339(ert-deftest help-tests-describe-map-tree/mention-shadow-nil () 339(ert-deftest help-tests-describe-map-tree/mention-shadow-nil ()
340 (with-temp-buffer 340 (with-temp-buffer
@@ -343,11 +343,11 @@ C-b bar
343 (2 . bar)))) 343 (2 . bar))))
344 (shadow-maps '((keymap . ((1 . baz)))))) 344 (shadow-maps '((keymap . ((1 . baz))))))
345 (describe-map-tree map t shadow-maps nil nil t nil nil nil) 345 (describe-map-tree map t shadow-maps nil nil t nil nil nil)
346 (should (equal (buffer-string) " 346 (should (string-match "
347Key Binding 347Key Binding
348 348-+
349C-b bar 349C-b bar\n"
350"))))) 350 (buffer-string))))))
351 351
352(ert-deftest help-tests-describe-map-tree/partial-t () 352(ert-deftest help-tests-describe-map-tree/partial-t ()
353 (with-temp-buffer 353 (with-temp-buffer
@@ -355,11 +355,11 @@ C-b bar
355 (map '(keymap . ((1 . foo) 355 (map '(keymap . ((1 . foo)
356 (2 . undefined))))) 356 (2 . undefined)))))
357 (describe-map-tree map t nil nil nil nil nil nil nil) 357 (describe-map-tree map t nil nil nil nil nil nil nil)
358 (should (equal (buffer-string) " 358 (should (string-match "
359Key Binding 359Key Binding
360 360-+
361C-a foo 361C-a foo\n"
362"))))) 362 (buffer-string))))))
363 363
364(ert-deftest help-tests-describe-map-tree/partial-nil () 364(ert-deftest help-tests-describe-map-tree/partial-nil ()
365 (with-temp-buffer 365 (with-temp-buffer
@@ -367,12 +367,12 @@ C-a foo
367 (map '(keymap . ((1 . foo) 367 (map '(keymap . ((1 . foo)
368 (2 . undefined))))) 368 (2 . undefined)))))
369 (describe-map-tree map nil nil nil nil nil nil nil nil) 369 (describe-map-tree map nil nil nil nil nil nil nil nil)
370 (should (equal (buffer-string) " 370 (should (string-match "
371Key Binding 371Key Binding
372 372-+
373C-a foo 373C-a foo
374C-b undefined 374C-b undefined\n"
375"))))) 375 (buffer-string))))))
376 376
377(defvar help-tests--was-in-buffer nil) 377(defvar help-tests--was-in-buffer nil)
378 378