summaryrefslogtreecommitdiff
path: root/test/lisp/use-package
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp/use-package')
-rw-r--r--test/lisp/use-package/use-package-chords-tests.el2
-rw-r--r--test/lisp/use-package/use-package-tests.el25
2 files changed, 20 insertions, 7 deletions
diff --git a/test/lisp/use-package/use-package-chords-tests.el b/test/lisp/use-package/use-package-chords-tests.el
index 3c3dc4b4fe0..2b7588dd807 100644
--- a/test/lisp/use-package/use-package-chords-tests.el
+++ b/test/lisp/use-package/use-package-chords-tests.el
@@ -158,4 +158,4 @@
;; no-update-autoloads: t
;; End:
-;;; use-package-tests.el ends here
+;;; use-package-chords-tests.el ends here
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el
index 007d2b07ac8..709c1988ffb 100644
--- a/test/lisp/use-package/use-package-tests.el
+++ b/test/lisp/use-package/use-package-tests.el
@@ -875,6 +875,12 @@
(gnus-harvest-install))
t))))
+(ert-deftest use-package-test/:autoload-1 ()
+ (match-expansion
+ (use-package foo :autoload bar)
+ `(unless (fboundp 'bar)
+ (autoload #'bar "foo"))))
+
(ert-deftest use-package-test/:defines-1 ()
(match-expansion
(use-package foo :defines bar)
@@ -1150,7 +1156,7 @@
(match-expansion
(use-package foo :custom-face (foo ((t (:background "#e4edfc")))))
`(progn
- (custom-set-faces (backquote (foo ((t (:background "#e4edfc"))))))
+ (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc"))))))
(require 'foo nil nil))))
(ert-deftest use-package-test/:custom-face-2 ()
@@ -1160,11 +1166,18 @@
(example-1-face ((t (:foreground "LightPink"))))
(example-2-face ((t (:foreground "LightGreen")))))
`(progn
- (custom-set-faces
- (backquote (example-1-face ((t (:foreground "LightPink"))))))
- (custom-set-faces
- (backquote (example-2-face ((t (:foreground "LightGreen"))))))
- (require 'example nil nil))))
+ (apply #'face-spec-set
+ (backquote (example-1-face ((t (:foreground "LightPink"))))))
+ (apply #'face-spec-set
+ (backquote (example-2-face ((t (:foreground "LightGreen"))))))
+ (require 'example nil nil))))
+
+(ert-deftest use-package-test/:custom-face-3 ()
+ (match-expansion
+ (use-package foo :custom-face (foo ((t (:background "#e4edfc"))) face-defspec-spec))
+ `(progn
+ (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc"))) face-defspec-spec)))
+ (require 'foo nil nil))))
(ert-deftest use-package-test/:init-1 ()
(match-expansion