Update tests for recent changes
* test/lisp/descr-text-tests.el (descr-text-test-desc): Update for recent change to describe-char-eldoc. * test/lisp/progmodes/elisp-mode-tests.el (elisp--highlight-function-argument-indexed) (elisp--highlight-function-argument-keyed-1) (elisp--highlight-function-argument-keyed-2): Update for recent change to elisp--highlight-function-argument.
This commit is contained in:
parent
fcc04678b9
commit
ef8bd7d856
2 changed files with 6 additions and 6 deletions
|
@ -75,18 +75,18 @@
|
|||
(goto-char (point-min))
|
||||
(should (eq ?a (following-char))) ; make sure we are where we think we are
|
||||
;; Function should return nil for an ASCII character.
|
||||
(should (not (describe-char-eldoc)))
|
||||
(should (not (describe-char-eldoc 'ignore)))
|
||||
|
||||
(goto-char (1+ (point)))
|
||||
(should (eq ?… (following-char)))
|
||||
(let ((eldoc-echo-area-use-multiline-p t))
|
||||
;; Function should return description of an Unicode character.
|
||||
(should (equal "U+2026: Horizontal ellipsis (Po: Punctuation, Other)"
|
||||
(describe-char-eldoc))))
|
||||
(describe-char-eldoc 'ignore))))
|
||||
|
||||
(goto-char (point-max))
|
||||
;; At the end of the buffer, function should return nil and not blow up.
|
||||
(should (not (describe-char-eldoc)))))
|
||||
(should (not (describe-char-eldoc 'ignore)))))
|
||||
|
||||
|
||||
(provide 'descr-text-test)
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
(dotimes (i 3)
|
||||
(should
|
||||
(equal (elisp-mode-tests--face-propertized-string
|
||||
(elisp--highlight-function-argument 'foo "(A B C)" (1+ i) "foo: "))
|
||||
(elisp--highlight-function-argument 'foo "(A B C)" (1+ i)))
|
||||
(propertize (nth i '("A" "B" "C"))
|
||||
'face 'eldoc-highlight-function-argument)))))
|
||||
|
||||
|
@ -206,7 +206,7 @@
|
|||
(cl-flet ((bold-arg (i)
|
||||
(elisp-mode-tests--face-propertized-string
|
||||
(elisp--highlight-function-argument
|
||||
'foo "(PROMPT LST &key A B C)" i "foo: "))))
|
||||
'foo "(PROMPT LST &key A B C)" i))))
|
||||
(should-not (bold-arg 0))
|
||||
(progn (forward-sexp) (forward-char))
|
||||
(should (equal (bold-arg 1) "PROMPT"))
|
||||
|
@ -226,7 +226,7 @@
|
|||
(cl-flet ((bold-arg (i)
|
||||
(elisp-mode-tests--face-propertized-string
|
||||
(elisp--highlight-function-argument
|
||||
'foo "(X &key A B C)" i "foo: "))))
|
||||
'foo "(X &key A B C)" i))))
|
||||
(should-not (bold-arg 0))
|
||||
;; The `:b' specifies positional arg `X'.
|
||||
(progn (forward-sexp) (forward-char))
|
||||
|
|
Loading…
Add table
Reference in a new issue