aboutsummaryrefslogtreecommitdiff
path: root/tests/test-music-config--faces.el
blob: c45049e1ab79014713e4aac1b6ca543d4184e852 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
;;; test-music-config--faces.el --- music playlist face definitions -*- lexical-binding: t; -*-

;;; Commentary:
;; The playlist header propertizes text with cj/music-* faces.  Each must be a
;; defined face (defface) or the reference is invalid -- an undefined face spams
;; "Invalid face reference" on every header render.  The faces inherit from
;; themed base faces so the theme still owns their colors.

;;; Code:

(require 'ert)
(add-to-list 'load-path (expand-file-name "modules" user-emacs-directory))
(require 'music-config)

(ert-deftest test-music-config-header-faces-are-defined ()
  "Normal: every cj/music face the playlist header uses is a defined face."
  (dolist (f '(cj/music-header-face
               cj/music-header-value-face
               cj/music-mode-on-face
               cj/music-mode-off-face
               cj/music-keyhint-face))
    (should (facep f))))

(provide 'test-music-config--faces)
;;; test-music-config--faces.el ends here