mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
; Quietly skip 'lua-ts-mode' tests (bug#70786)
* test/lisp/align-tests.el (align-lua): * test/lisp/progmodes/lua-ts-mode-tests.el (lua-ts-test-indentation): (lua-ts-test-movement): (lua-ts-test-font-lock): (lua-ts-test-which-function): Suppress warnings when the grammar is not installed.
This commit is contained in:
parent
03d4b96da6
commit
4eb363acc8
2 changed files with 5 additions and 5 deletions
|
|
@ -26,20 +26,20 @@
|
|||
(require 'which-func)
|
||||
|
||||
(ert-deftest lua-ts-test-indentation ()
|
||||
(skip-unless (treesit-ready-p 'lua))
|
||||
(skip-unless (treesit-ready-p 'lua t))
|
||||
(ert-test-erts-file (ert-resource-file "indent.erts")))
|
||||
|
||||
(ert-deftest lua-ts-test-movement ()
|
||||
(skip-unless (treesit-ready-p 'lua))
|
||||
(skip-unless (treesit-ready-p 'lua t))
|
||||
(ert-test-erts-file (ert-resource-file "movement.erts")))
|
||||
|
||||
(ert-deftest lua-ts-test-font-lock ()
|
||||
(skip-unless (treesit-ready-p 'lua))
|
||||
(skip-unless (treesit-ready-p 'lua t))
|
||||
(let ((treesit-font-lock-level 4))
|
||||
(ert-font-lock-test-file (ert-resource-file "font-lock.lua") 'lua-ts-mode)))
|
||||
|
||||
(ert-deftest lua-ts-test-which-function ()
|
||||
(skip-unless (treesit-ready-p 'lua))
|
||||
(skip-unless (treesit-ready-p 'lua t))
|
||||
(with-temp-buffer
|
||||
(insert-file-contents (ert-resource-file "which-function.lua"))
|
||||
(lua-ts-mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue