[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode d85cc3d 103/459: Add unit-test for hooks du
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode d85cc3d 103/459: Add unit-test for hooks during mode-activation. |
Date: |
Sun, 22 Aug 2021 13:59:05 -0400 (EDT) |
branch: externals/csharp-mode
commit d85cc3d635114f149783d87d45fd464469254050
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Add unit-test for hooks during mode-activation.
---
csharp-mode-tests.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 0d113b4..21156ba 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -100,7 +100,7 @@
(matched-file-names (cadddr test-case))
(find-file-hook '()) ;; avoid vc-mode file-hooks when opening!
(buffer (find-file-read-only file-name)))
- (message (concat "Testing compilation-log: " file-name))
+ (message (concat "Testing compilation-log: " file-name))
(dotimes (number times)
(let* ((expected (nth number matched-file-names)))
(message (concat "- Expecting match: " expected))
@@ -130,4 +130,13 @@
(result (csharp--imenu-remove-param-names-from-paramlist
test-value)))
(should (equal expected-value result)))))
+(ert-deftest activating-mode-triggers-all-hooks ()
+ (add-hook 'csharp-mode-hook (lambda () (setq csharp-hook1 t)))
+ (add-hook 'prog-mode-hook (lambda () (setq csharp-hook2 t)))
+
+ (with-temp-buffer
+ (csharp-mode)
+ (should (equal t (and csharp-hook1
+ csharp-hook2)))))
+
;;(ert-run-tests-interactively t)
- [elpa] externals/csharp-mode 7805fe8 077/459: Fix const-declaration for compilation-error regexps., (continued)
- [elpa] externals/csharp-mode 7805fe8 077/459: Fix const-declaration for compilation-error regexps., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8bd0e66 078/459: fix compilation regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8aaf6ff 059/459: Ensure template-file is not included in MELPA-built package., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8e8c804 061/459: Fix test., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7dec1ea 069/459: make compilation regexps work with xbuild, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1939c4e 073/459: Extract compilation-mode regexps into constants., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 334566c 083/459: Support emacs binary being installed to path with whitespace., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c9e1aa9 081/459: Merge pull request #29 from josteink/compilation-regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f1cd209 091/459: fontify var as a typeless declaration, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a854be8 094/459: Bump version., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d85cc3d 103/459: Add unit-test for hooks during mode-activation.,
ELPA Syncer <=
- [elpa] externals/csharp-mode 8dd56f4 100/459: Reproduce issue #42., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5ecae8b 099/459: Add support for devenv compilation-output., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b061f8a 104/459: Add unit-test for indentation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 831bd53 108/459: Fix "make clean"., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ba36d6c 105/459: Replace `flet` with `letrec`, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 494cbd9 106/459: Merge pull request #45 from wasamasa/fix-flet-warning, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a182957 112/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 03e6200 109/459: Emacs: Tentative fix for fontification issues., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 64eb7db 114/459: Merge pull request #47 from josteink/feature-cl-lib, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 165a128 028/459: Update maintainer-ship and new repo-URL., ELPA Syncer, 2021/08/22