Function: ert-font-lock-test-file
ert-font-lock-test-file is an autoloaded and byte-compiled function
defined in ert-font-lock.el.gz.
Signature
(ert-font-lock-test-file FILENAME MODE)
Documentation
Check font faces in FILENAME set by MODE.
The function is meant to be run from within an ERT test.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert-font-lock.el.gz
;;;###autoload
(defun ert-font-lock-test-file (filename mode)
"Check font faces in FILENAME set by MODE.
The function is meant to be run from within an ERT test."
(ert-font-lock--validate-major-mode mode)
(with-temp-buffer
(insert-file-contents filename)
(funcall mode)
(font-lock-ensure)
(ert-font-lock--check-faces (ert-font-lock--parse-comments)))
(ert-pass))