; 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:
João Távora 2026-01-02 01:30:34 +00:00
parent da4c693e0b
commit c6483b4c89

View file

@ -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)