diff options
| author | Lars Ingebrigtsen | 2022-07-15 12:15:26 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-07-15 12:15:26 +0200 |
| commit | 6befaa02caee377acd11e7adf183a34c98afc819 (patch) | |
| tree | 77a6b888416202b53b0f6ed9e299b49201ceec55 | |
| parent | 29eb4596956a74a83ceb4c17835886a23ea0dd20 (diff) | |
| download | emacs-6befaa02caee377acd11e7adf183a34c98afc819.tar.gz emacs-6befaa02caee377acd11e7adf183a34c98afc819.zip | |
Adjust whitespace tests
| -rw-r--r-- | test/lisp/whitespace-tests.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/lisp/whitespace-tests.el b/test/lisp/whitespace-tests.el index 07eaad4862b..2a59bfe9d80 100644 --- a/test/lisp/whitespace-tests.el +++ b/test/lisp/whitespace-tests.el | |||
| @@ -52,9 +52,9 @@ | |||
| 52 | ;; mode. So we call its innards instead. | 52 | ;; mode. So we call its innards instead. |
| 53 | (defun whitespace-tests-whitespace-mode-on () | 53 | (defun whitespace-tests-whitespace-mode-on () |
| 54 | "Turn `whitespace-mode' on even in batch mode." | 54 | "Turn `whitespace-mode' on even in batch mode." |
| 55 | (setq whitespace-mode t) | ||
| 55 | (whitespace-turn-on) | 56 | (whitespace-turn-on) |
| 56 | (whitespace-action-when-on) | 57 | (whitespace-action-when-on)) |
| 57 | (setq whitespace-mode t)) | ||
| 58 | 58 | ||
| 59 | (ert-deftest whitespace-tests-display-tables () | 59 | (ert-deftest whitespace-tests-display-tables () |
| 60 | "Test whitespace stores and restores the buffer display table - bug26892." | 60 | "Test whitespace stores and restores the buffer display table - bug26892." |
| @@ -77,7 +77,6 @@ | |||
| 77 | ;test the stored display table is preserved | 77 | ;test the stored display table is preserved |
| 78 | (should (equal nil | 78 | (should (equal nil |
| 79 | (progn (whitespace-tests-whitespace-mode-on) | 79 | (progn (whitespace-tests-whitespace-mode-on) |
| 80 | (whitespace-tests-whitespace-mode-on) | ||
| 81 | (whitespace-turn-off) | 80 | (whitespace-turn-off) |
| 82 | buffer-display-table)))))) | 81 | buffer-display-table)))))) |
| 83 | 82 | ||