[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] scratch/editorconfig-cc 4b3784445a 180/351: Add trim-trailing-w
From: |
Stefan Monnier |
Subject: |
[nongnu] scratch/editorconfig-cc 4b3784445a 180/351: Add trim-trailing-ws tests |
Date: |
Thu, 13 Jun 2024 18:38:51 -0400 (EDT) |
branch: scratch/editorconfig-cc
commit 4b3784445a0ea21dc49221cdb2a44873824a4812
Author: 10sr <8.slashes@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
Add trim-trailing-ws tests
With case where read-only-mode is enabled
---
ert-tests/editorconfig.el | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/ert-tests/editorconfig.el b/ert-tests/editorconfig.el
index 4aebde67cf..cd57f2e26d 100644
--- a/ert-tests/editorconfig.el
+++ b/ert-tests/editorconfig.el
@@ -52,3 +52,16 @@
"2_space.el")
(should (eq lisp-indent-offset 2))))
(editorconfig-mode -1))
+
+(ert-deftest test-trim-trailing-ws nil
+ (editorconfig-mode 1)
+ (with-visit-file (concat editorconfig-ert-dir
+ "trim.txt")
+ (should (memq 'delete-trailing-whitespace
+ write-file-functions)))
+ (with-visit-file (concat editorconfig-ert-dir
+ "trim.txt")
+ (read-only-mode 1)
+ (should (not (memq 'delete-trailing-whitespace
+ write-file-functions))))
+ (editorconfig-mode -1))
- [nongnu] scratch/editorconfig-cc 90fba8ee80 164/351: Add doc/.gitignore, (continued)
- [nongnu] scratch/editorconfig-cc 90fba8ee80 164/351: Add doc/.gitignore, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 7ab129a73b 096/351: Add a comment for contributors, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 508e854392 107/351: Trivial commentary fix, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 49421bc1a4 123/351: Add one space to editorconfig-mode lighter text, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc f0abc53ff0 157/351: Fix fnmatch for new cases, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc e867da296c 124/351: Reindent using Emacs-lisp style., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc d8742edc38 168/351: Fix make doc command, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ccfd1910f4 171/351: Remove unused variable, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc efffe74bbf 166/351: Remove doc/.gitignore, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 706ac40ec2 193/351: Make `fixtures' a constant (#176), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 4b3784445a 180/351: Add trim-trailing-ws tests,
Stefan Monnier <=
- [nongnu] scratch/editorconfig-cc b6d0bb7757 201/351: Do not call major-mode when already enabled (#178), Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 642ff1b62f 215/351: Use ws-butler when enabled and available., Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 9fdc9cc689 218/351: Add variable editorconfig-trim-whitespaces-mode, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 96123213ed 229/351: Add support for Emacs24.5, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc de83e09632 243/351: Update docstring, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 4beeb9c830 253/351: Make editorconfig-properties-hash permanetn-local, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc ee5b70f1e2 068/351: editorocnfig-core: Throw error when parsing .editorconfig failed, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 3bdd68d5af 069/351: Add tcl-mode indentation support, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 32fb0d6b9c 056/351: Use `require` instead of `load` in usage example, Stefan Monnier, 2024/06/13
- [nongnu] scratch/editorconfig-cc 903e483a70 052/351: Make `editorconfig-apply' an interactive command, Stefan Monnier, 2024/06/13