diff options
| author | Stefan Kangas | 2021-11-06 19:35:31 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2021-11-06 19:35:31 +0100 |
| commit | b8b0e529a8f1dcea9a219ce8b2f66bb3e0be17bd (patch) | |
| tree | a6392ed0bcf6e7094ca793816125483f9832bb72 | |
| parent | 83422370c87000f3d6d89320d4947c24325c9ad2 (diff) | |
| download | emacs-b8b0e529a8f1dcea9a219ce8b2f66bb3e0be17bd.tar.gz emacs-b8b0e529a8f1dcea9a219ce8b2f66bb3e0be17bd.zip | |
; * test/lisp/help-tests.el: Fix failing tests after recent change.
| -rw-r--r-- | test/lisp/help-tests.el | 66 |
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 | " |
| 95 | Key Binding | 95 | Key Binding |
| 96 | 96 | -+ | |
| 97 | C-g abort-minibuffers | 97 | C-g abort-minibuffers |
| 98 | TAB minibuffer-complete | 98 | TAB minibuffer-complete |
| 99 | C-j minibuffer-complete-and-exit | 99 | C-j minibuffer-complete-and-exit |
| 100 | RET minibuffer-complete-and-exit | 100 | RET minibuffer-complete-and-exit |
| 101 | SPC minibuffer-complete-word | 101 | SPC minibuffer-complete-word |
| 102 | ? minibuffer-completion-help | 102 | \\? minibuffer-completion-help |
| 103 | C-<tab> file-cache-minibuffer-complete | 103 | C-<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 | " |
| 248 | Key Binding | 248 | Key Binding |
| 249 | 249 | -+ | |
| 250 | ( .. ) short-range | 250 | ( .. ) short-range |
| 251 | 1 .. 4 foo-range | 251 | 1 .. 4 foo-range |
| 252 | a .. c foo-other-range | 252 | a .. 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 | " |
| 266 | Key Binding | 266 | Key Binding |
| 267 | 267 | -+ | |
| 268 | ( .. ) short-range | 268 | ( .. ) short-range |
| 269 | 1 .. 4 foo-range | 269 | 1 .. 4 foo-range |
| 270 | a .. c foo-other-range | 270 | a .. 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 | " |
| 287 | Key Binding | 287 | Key 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 " |
| 302 | Key Binding | 302 | Key Binding |
| 303 | 303 | -+ | |
| 304 | C-a foo | 304 | C-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 " |
| 317 | Key Binding | 317 | Key Binding |
| 318 | 318 | -+ | |
| 319 | C-a foo | 319 | C-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 " |
| 332 | Key Binding | 332 | Key Binding |
| 333 | 333 | -+ | |
| 334 | C-a foo | 334 | C-a foo |
| 335 | (this binding is currently shadowed) | 335 | (this binding is currently shadowed) |
| 336 | C-b bar | 336 | C-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 " |
| 347 | Key Binding | 347 | Key Binding |
| 348 | 348 | -+ | |
| 349 | C-b bar | 349 | C-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 " |
| 359 | Key Binding | 359 | Key Binding |
| 360 | 360 | -+ | |
| 361 | C-a foo | 361 | C-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 " |
| 371 | Key Binding | 371 | Key Binding |
| 372 | 372 | -+ | |
| 373 | C-a foo | 373 | C-a foo |
| 374 | C-b undefined | 374 | C-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 | ||