summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-11-15 18:42:20 +0000
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-11-15 18:43:28 +0000
commit4f19767dfa527955b94c9133e8ce03cf1c766750 (patch)
treedf8992897099b41e98845d549466ca0cdf445753 /test
parent8121757b3ae6cbb7a7bac12b11ac32f243657aee (diff)
downloademacs-4f19767dfa527955b94c9133e8ce03cf1c766750.tar.gz
* lisp/faces.el (faces--attribute-at-point): Fix an issue
Previous code would signal an error when the face at point was a manually built list of attributes such as '(:foregroud "white"). * test/automated/faces-tests.el (faces--test-color-at-point): Add a test
Diffstat (limited to 'test')
-rw-r--r--test/automated/faces-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/automated/faces-tests.el b/test/automated/faces-tests.el
index 007bc805120..ff9dfc53fbe 100644
--- a/test/automated/faces-tests.el
+++ b/test/automated/faces-tests.el
@@ -38,6 +38,11 @@
(should (equal (background-color-at-point) "black"))
(should (equal (foreground-color-at-point) "black")))
(with-temp-buffer
+ (insert (propertize "STRING" 'face '(:foreground "black" :background "black")))
+ (goto-char (point-min))
+ (should (equal (background-color-at-point) "black"))
+ (should (equal (foreground-color-at-point) "black")))
+ (with-temp-buffer
(emacs-lisp-mode)
(setq-local font-lock-comment-face 'faces--test1)
(setq-local font-lock-constant-face 'faces--test2)