mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-13 09:32:47 +00:00
Update CSS completion tests
* test/lisp/textmodes/css-mode-tests.el (css-test-complete-pseudo-class) (css-test-complete-pseudo-element): Update the tests for recent changes.
This commit is contained in:
parent
de61b0b25f
commit
b6e0b66e0e
@ -143,20 +143,20 @@
|
||||
(css-mode)
|
||||
(insert "body:a")
|
||||
(let ((completions (css-mode-tests--completions)))
|
||||
(should (member "active" completions))
|
||||
(should-not (member "disabled" completions))
|
||||
(should (member ":active" completions))
|
||||
(should-not (member ":disabled" completions))
|
||||
;; Don't include pseudo-elements
|
||||
(should-not (member "after" completions)))))
|
||||
(should-not (member "::after" completions)))))
|
||||
|
||||
(ert-deftest css-test-complete-pseudo-element ()
|
||||
(with-temp-buffer
|
||||
(css-mode)
|
||||
(insert "body::a")
|
||||
(let ((completions (css-mode-tests--completions)))
|
||||
(should (member "after" completions))
|
||||
(should-not (member "disabled" completions))
|
||||
(should (member "::after" completions))
|
||||
(should-not (member "::disabled" completions))
|
||||
;; Don't include pseudo-classes
|
||||
(should-not (member "active" completions)))))
|
||||
(should-not (member ":active" completions)))))
|
||||
|
||||
(ert-deftest css-test-complete-at-rule ()
|
||||
(with-temp-buffer
|
||||
|
Loading…
Reference in New Issue
Block a user