summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2021-05-15 23:46:30 +0300
committerDmitry Gutov <dgutov@yandex.ru>2021-05-15 23:46:30 +0300
commitb6e0b66e0edfcf339b37cd4ddc99a56dee1df213 (patch)
tree4383d031f6de2f730e27f609de5f0e7dea24cce7
parentde61b0b25f0ff47e6da1c86da04b37bc61f963df (diff)
downloademacs-b6e0b66e0edfcf339b37cd4ddc99a56dee1df213.tar.gz
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.
-rw-r--r--test/lisp/textmodes/css-mode-tests.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lisp/textmodes/css-mode-tests.el b/test/lisp/textmodes/css-mode-tests.el
index 97f5abf1156..abf85dbff43 100644
--- a/test/lisp/textmodes/css-mode-tests.el
+++ b/test/lisp/textmodes/css-mode-tests.el
@@ -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