diff options
| author | Po Lu | 2025-03-04 14:32:48 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-04 14:32:48 +0800 |
| commit | fe7a8c92be6269f8fc7933eb6c190178839d0f8a (patch) | |
| tree | d985e95c6954ea7a8fedfd6415d13f05970fcdd8 /test | |
| parent | d9f93e8fdcc00ab81b678c6f7d3f9b67cb14bd6d (diff) | |
| parent | 1b80bc67aadd01de00b7911ae32bf5d91b262a8a (diff) | |
| download | emacs-fe7a8c92be6269f8fc7933eb6c190178839d0f8a.tar.gz emacs-fe7a8c92be6269f8fc7933eb6c190178839d0f8a.zip | |
Merge from savannah/emacs-30
1b80bc67aad ; * doc/emacs/android.texi (Android Software): Minor mark...
dcfbf7d1863 ; * etc/PROBLEMS: Document the same problem here.
b09bbf22afd Document requirements respecting XDG MIME databases on An...
365a91622e0 ; (completion-preview--try-table): Propagate extra proper...
# Conflicts:
# lisp/completion-preview.el
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/completion-preview-tests.el | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lisp/completion-preview-tests.el b/test/lisp/completion-preview-tests.el index 411a14a87ef..8ce2a30bb27 100644 --- a/test/lisp/completion-preview-tests.el +++ b/test/lisp/completion-preview-tests.el | |||
| @@ -445,4 +445,17 @@ instead." | |||
| 445 | (should (string= (buffer-string) "foobar")) | 445 | (should (string= (buffer-string) "foobar")) |
| 446 | (should (eq (get-text-property 6 'prop) 'val)))) | 446 | (should (eq (get-text-property 6 'prop) 'val)))) |
| 447 | 447 | ||
| 448 | (ert-deftest completion-preview-propagates-properties () | ||
| 449 | "Test the completion metadata handling of Completion Preview mode." | ||
| 450 | (with-temp-buffer | ||
| 451 | (setq-local | ||
| 452 | completion-preview-sort-function #'minibuffer-sort-alphabetically | ||
| 453 | completion-at-point-functions | ||
| 454 | (list (completion-preview-tests--capf '("foobaz" "foobar") | ||
| 455 | :display-sort-function #'identity))) | ||
| 456 | (insert "foo") | ||
| 457 | (let ((this-command 'self-insert-command)) | ||
| 458 | (completion-preview--post-command)) | ||
| 459 | (completion-preview-tests--check-preview "baz" 'completion-preview-common))) | ||
| 460 | |||
| 448 | ;;; completion-preview-tests.el ends here | 461 | ;;; completion-preview-tests.el ends here |