mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
; Eglot: unbreak tests after semtok face rename
* test/lisp/progmodes/eglot-tests.el (eglot-test-semtok-basic) (eglot-test-semtok-refontify): Fix tests.
This commit is contained in:
parent
da4c693e0b
commit
c6483b4c89
1 changed files with 4 additions and 4 deletions
|
|
@ -1530,9 +1530,9 @@ GUESSED-MAJOR-MODES-SYM are bound to the useful return values of
|
|||
(eglot--semtok-wait (point-min))
|
||||
(goto-char (point-min))
|
||||
(search-forward "main")
|
||||
(should (memq 'eglot-semantic-function-face (eglot--semtok-faces)))
|
||||
(should (memq 'eglot-semantic-function (eglot--semtok-faces)))
|
||||
(search-forward "int x")
|
||||
(should (memq 'eglot-semantic-variable-face (eglot--semtok-faces))))))
|
||||
(should (memq 'eglot-semantic-variable (eglot--semtok-faces))))))
|
||||
|
||||
(ert-deftest eglot-test-semtok-refontify ()
|
||||
"Test semantic tokens refontification after edits."
|
||||
|
|
@ -1551,9 +1551,9 @@ GUESSED-MAJOR-MODES-SYM are bound to the useful return values of
|
|||
(eglot--signal-textDocument/didChange) ; a bit unrealistic
|
||||
(eglot--semtok-wait (point))
|
||||
(search-forward "bar")
|
||||
(should (memq 'eglot-semantic-function-face (eglot--semtok-faces)))
|
||||
(should (memq 'eglot-semantic-function (eglot--semtok-faces)))
|
||||
(search-forward "int y")
|
||||
(should (memq 'eglot-semantic-variable-face (eglot--semtok-faces))))))
|
||||
(should (memq 'eglot-semantic-variable (eglot--semtok-faces))))))
|
||||
|
||||
(provide 'eglot-tests)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue