diff options
| author | John Wiegley | 2022-11-15 09:21:07 -0800 |
|---|---|---|
| committer | John Wiegley | 2022-11-15 09:21:07 -0800 |
| commit | 49fffe7cf4beb7b35d90758f4e6c24ebfe3615e1 (patch) | |
| tree | 3b7699e4ffab2312c14f697da11059409ba4b86c /test/lisp | |
| parent | ec96b4766418fdfce2d7827fa6ddeb7257ad6cf7 (diff) | |
| parent | cf8ab8b52eae65a108d899e896e1171355122bb7 (diff) | |
| download | emacs-49fffe7cf4beb7b35d90758f4e6c24ebfe3615e1.tar.gz emacs-49fffe7cf4beb7b35d90758f4e6c24ebfe3615e1.zip | |
Merge remote-tracking branch 'origin/master' into pr-830
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/use-package/use-package-chords-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/use-package/use-package-tests.el | 25 |
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 @@ | |||
| 158 | ;; no-update-autoloads: t | 158 | ;; no-update-autoloads: t |
| 159 | ;; End: | 159 | ;; End: |
| 160 | 160 | ||
| 161 | ;;; use-package-tests.el ends here | 161 | ;;; 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 @@ | |||
| 875 | (gnus-harvest-install)) | 875 | (gnus-harvest-install)) |
| 876 | t)))) | 876 | t)))) |
| 877 | 877 | ||
| 878 | (ert-deftest use-package-test/:autoload-1 () | ||
| 879 | (match-expansion | ||
| 880 | (use-package foo :autoload bar) | ||
| 881 | `(unless (fboundp 'bar) | ||
| 882 | (autoload #'bar "foo")))) | ||
| 883 | |||
| 878 | (ert-deftest use-package-test/:defines-1 () | 884 | (ert-deftest use-package-test/:defines-1 () |
| 879 | (match-expansion | 885 | (match-expansion |
| 880 | (use-package foo :defines bar) | 886 | (use-package foo :defines bar) |
| @@ -1150,7 +1156,7 @@ | |||
| 1150 | (match-expansion | 1156 | (match-expansion |
| 1151 | (use-package foo :custom-face (foo ((t (:background "#e4edfc"))))) | 1157 | (use-package foo :custom-face (foo ((t (:background "#e4edfc"))))) |
| 1152 | `(progn | 1158 | `(progn |
| 1153 | (custom-set-faces (backquote (foo ((t (:background "#e4edfc")))))) | 1159 | (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc")))))) |
| 1154 | (require 'foo nil nil)))) | 1160 | (require 'foo nil nil)))) |
| 1155 | 1161 | ||
| 1156 | (ert-deftest use-package-test/:custom-face-2 () | 1162 | (ert-deftest use-package-test/:custom-face-2 () |
| @@ -1160,11 +1166,18 @@ | |||
| 1160 | (example-1-face ((t (:foreground "LightPink")))) | 1166 | (example-1-face ((t (:foreground "LightPink")))) |
| 1161 | (example-2-face ((t (:foreground "LightGreen"))))) | 1167 | (example-2-face ((t (:foreground "LightGreen"))))) |
| 1162 | `(progn | 1168 | `(progn |
| 1163 | (custom-set-faces | 1169 | (apply #'face-spec-set |
| 1164 | (backquote (example-1-face ((t (:foreground "LightPink")))))) | 1170 | (backquote (example-1-face ((t (:foreground "LightPink")))))) |
| 1165 | (custom-set-faces | 1171 | (apply #'face-spec-set |
| 1166 | (backquote (example-2-face ((t (:foreground "LightGreen")))))) | 1172 | (backquote (example-2-face ((t (:foreground "LightGreen")))))) |
| 1167 | (require 'example nil nil)))) | 1173 | (require 'example nil nil)))) |
| 1174 | |||
| 1175 | (ert-deftest use-package-test/:custom-face-3 () | ||
| 1176 | (match-expansion | ||
| 1177 | (use-package foo :custom-face (foo ((t (:background "#e4edfc"))) face-defspec-spec)) | ||
| 1178 | `(progn | ||
| 1179 | (apply #'face-spec-set (backquote (foo ((t (:background "#e4edfc"))) face-defspec-spec))) | ||
| 1180 | (require 'foo nil nil)))) | ||
| 1168 | 1181 | ||
| 1169 | (ert-deftest use-package-test/:init-1 () | 1182 | (ert-deftest use-package-test/:init-1 () |
| 1170 | (match-expansion | 1183 | (match-expansion |