aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSimen Heggestøyl2016-04-26 20:37:56 +0200
committerSimen Heggestøyl2016-04-26 20:41:04 +0200
commit07d729130e5774fc484ba324d9149d4c6f008260 (patch)
tree21927947ef5fb41df1b1359bf27b5085e41aa0c6 /test
parent40a03df45353692f73364e488c962f1a7cf2e8bc (diff)
downloademacs-07d729130e5774fc484ba324d9149d4c6f008260.tar.gz
emacs-07d729130e5774fc484ba324d9149d4c6f008260.zip
Add completion of `calc()' in CSS mode
* lisp/textmodes/css-mode.el (css-value-class-alist): Add `calc()' as a completion candidate for several value classes. (css--value-class-lookup): Return only unique results. * test/lisp/textmodes/css-mode-tests.el (css-test-property-values-no-duplicates) (css-test-value-class-lookup): Update to reflect the above changes.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/textmodes/css-mode-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/textmodes/css-mode-tests.el b/test/lisp/textmodes/css-mode-tests.el
index 5d5873b301b..4c0a3572b36 100644
--- a/test/lisp/textmodes/css-mode-tests.el
+++ b/test/lisp/textmodes/css-mode-tests.el
@@ -72,12 +72,12 @@
72 ;; removed, it'll contain at least two instances of `auto'. 72 ;; removed, it'll contain at least two instances of `auto'.
73 (should 73 (should
74 (equal (sort (css--property-values "flex") #'string-lessp) 74 (equal (sort (css--property-values "flex") #'string-lessp)
75 '("auto" "content" "none")))) 75 '("auto" "calc()" "content" "none"))))
76 76
77(ert-deftest css-test-value-class-lookup () 77(ert-deftest css-test-value-class-lookup ()
78 (should 78 (should
79 (equal (sort (css--value-class-lookup 'position) #'string-lessp) 79 (equal (sort (css--value-class-lookup 'position) #'string-lessp)
80 '("bottom" "center" "left" "right" "top")))) 80 '("bottom" "calc()" "center" "left" "right" "top"))))
81 81
82(provide 'css-mode-tests) 82(provide 'css-mode-tests)
83;;; css-mode-tests.el ends here 83;;; css-mode-tests.el ends here