diff options
| author | Stefan Kangas | 2020-10-24 03:45:48 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2020-10-24 13:35:49 +0200 |
| commit | 228d9d615d7067ca06a2b53205c29d78dbbfe725 (patch) | |
| tree | 0344d8c23374a8f481c9856e06497f130f0dce6c /test/data | |
| parent | 2c487c47c8c3060818b2fcbfebbcd859f9d06ef5 (diff) | |
| download | emacs-228d9d615d7067ca06a2b53205c29d78dbbfe725.tar.gz emacs-228d9d615d7067ca06a2b53205c29d78dbbfe725.zip | |
Move faces.el test data to follow our conventions
* test/lisp/faces-tests.el (ert-x): Require.
(faces--test-data-dir): Remove variable.
(faces--test-extend-with-themes): Use ert-resource-directory.
* test/lisp/faces-resources/*: Moved from test/data/themes/*.
Diffstat (limited to 'test/data')
| -rw-r--r-- | test/data/themes/faces-test-dark-theme.el | 35 | ||||
| -rw-r--r-- | test/data/themes/faces-test-light-theme.el | 34 |
2 files changed, 0 insertions, 69 deletions
diff --git a/test/data/themes/faces-test-dark-theme.el b/test/data/themes/faces-test-dark-theme.el deleted file mode 100644 index a5e2ca43627..00000000000 --- a/test/data/themes/faces-test-dark-theme.el +++ /dev/null | |||
| @@ -1,35 +0,0 @@ | |||
| 1 | ;;; faces-test-dark-theme.el --- A dark theme from tests ;;; -*- lexical-binding: t; -*- | ||
| 2 | |||
| 3 | ;; Copyright (C) 2019-2020 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | ;; This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | ;; it under the terms of the GNU General Public License as published by | ||
| 9 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 10 | ;; (at your option) any later version. | ||
| 11 | |||
| 12 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | ;; GNU General Public License for more details. | ||
| 16 | |||
| 17 | ;; You should have received a copy of the GNU General Public License | ||
| 18 | ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. | ||
| 19 | |||
| 20 | ;;; Commentary: | ||
| 21 | |||
| 22 | ;;; Code: | ||
| 23 | |||
| 24 | (deftheme faces-test-dark | ||
| 25 | "") | ||
| 26 | |||
| 27 | (custom-theme-set-faces | ||
| 28 | 'faces-test-dark | ||
| 29 | '(spiff-added ((t (:foreground "Green" :extend t)))) | ||
| 30 | '(spiff-changed-face ((t (:foreground "Khaki")))) | ||
| 31 | '(spiff-file-header-face ((t (:background "grey20" :foreground "ivory1"))))) | ||
| 32 | |||
| 33 | (provide-theme 'faces-test-dark) | ||
| 34 | |||
| 35 | ;;; faces-test-dark-theme.el ends here | ||
diff --git a/test/data/themes/faces-test-light-theme.el b/test/data/themes/faces-test-light-theme.el deleted file mode 100644 index b2f7ec69742..00000000000 --- a/test/data/themes/faces-test-light-theme.el +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | ;;; faces-test-light-theme.el --- A dark theme from tests ;;; -*- lexical-binding: t; -*- | ||
| 2 | |||
| 3 | ;; Copyright (C) 2019-2020 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | ;; This file is part of GNU Emacs. | ||
| 6 | |||
| 7 | ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 8 | ;; it under the terms of the GNU General Public License as published by | ||
| 9 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 10 | ;; (at your option) any later version. | ||
| 11 | |||
| 12 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | ;; GNU General Public License for more details. | ||
| 16 | |||
| 17 | ;; You should have received a copy of the GNU General Public License | ||
| 18 | ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. | ||
| 19 | |||
| 20 | ;;; Commentary: | ||
| 21 | |||
| 22 | ;;; Code: | ||
| 23 | |||
| 24 | (deftheme faces-test-light | ||
| 25 | "") | ||
| 26 | |||
| 27 | (custom-theme-set-faces | ||
| 28 | 'faces-test-light | ||
| 29 | '(spiff-added ((t (:inherit diff-changed :background "light green" :extend t)))) | ||
| 30 | '(spiff-changed ((t (:background "light steel blue"))))) | ||
| 31 | |||
| 32 | (provide-theme 'faces-test-light) | ||
| 33 | |||
| 34 | ;;; faces-test-light-theme.el ends here | ||