lang/web: add css library tests

This commit is contained in:
Henrik Lissner 2018-05-08 15:19:21 +02:00
parent 399f3538ce
commit fbb2a710b5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -0,0 +1,32 @@
;; -*- no-byte-compile: t; -*-
;;; lang/web/test/autoload-css.el
(def-test! toggle-inline-or-block
(let ((css-indent-offset 2))
(should-buffer!
("body { color: red{0}; font-size: 2em; }")
("body {"
" color: red{|};"
" font-size: 2em;"
"}")
(delay-mode-hooks (css-mode))
(+css/toggle-inline-or-block))))
(def-test! comment-indent-new-line
(should-buffer!
("// test{0}"
"body { color: red; font-size: 2em; }")
("// test"
"// {|}"
"body { color: red; font-size: 2em; }")
(delay-mode-hooks (scss-mode))
(+css/comment-indent-new-line))
(should-buffer!
("// test{0}"
"body { color: red; font-size: 2em; }")
("// test"
"// {|}"
"body { color: red; font-size: 2em; }")
(delay-mode-hooks (scss-mode))
(+css/comment-indent-new-line)))