Add test for when 'completion-auto-help' is 'visible'
* test/lisp/minibuffer-tests.el (completion-auto-help-test): Add test for when 'completion-auto-help' is 'visible'. Also test for successful completion message. (Bug#63913)
This commit is contained in:
parent
2c623e4feb
commit
90047c38ce
1 changed files with 13 additions and 2 deletions
|
@ -353,12 +353,23 @@
|
|||
'("a" "ab" "ac")
|
||||
(execute-kbd-macro (kbd "a TAB TAB"))
|
||||
(should (equal (car messages) "Complete, but not unique"))
|
||||
(should-not (get-buffer-window "*Completions*" 0))))
|
||||
(should-not (get-buffer-window "*Completions*" 0))
|
||||
(execute-kbd-macro (kbd "b TAB"))
|
||||
(should (equal (car messages) "Sole completion"))))
|
||||
(let ((completion-auto-help t))
|
||||
(completing-read-with-minibuffer-setup
|
||||
'("a" "ab" "ac")
|
||||
(execute-kbd-macro (kbd "a TAB TAB"))
|
||||
(should (get-buffer-window "*Completions*" 0)))))))
|
||||
(should (get-buffer-window "*Completions*" 0))
|
||||
(execute-kbd-macro (kbd "b TAB"))
|
||||
(should (equal (car messages) "Sole completion"))))
|
||||
(let ((completion-auto-help 'visible))
|
||||
(completing-read-with-minibuffer-setup
|
||||
'("a" "ab" "ac" "achoo")
|
||||
(execute-kbd-macro (kbd "a TAB TAB"))
|
||||
(should (get-buffer-window "*Completions*" 0))
|
||||
(execute-kbd-macro (kbd "ch TAB"))
|
||||
(should (equal (car messages) "Sole completion")))))))
|
||||
|
||||
(ert-deftest completion-auto-select-test ()
|
||||
(let ((completion-auto-select t))
|
||||
|
|
Loading…
Add table
Reference in a new issue