aboutsummaryrefslogtreecommitdiff
path: root/tests/test-test-runner.el
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-test-runner.el')
-rw-r--r--tests/test-test-runner.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/test-test-runner.el b/tests/test-test-runner.el
index 6854b72e..c5416352 100644
--- a/tests/test-test-runner.el
+++ b/tests/test-test-runner.el
@@ -497,5 +497,19 @@ comparing against the directory with a trailing slash rejects it."
(ert-delete-test 'test-testrunner-project-names-b))))
(test-testrunner-teardown))
+;;; bindings
+
+(ert-deftest test-testrunner-prefix-is-capital-t ()
+ "Normal: the test runner map sits on C-; T with its commands under it."
+ (should (eq (keymap-lookup cj/custom-keymap "T") cj/testrunner-map))
+ (should (eq (keymap-lookup cj/custom-keymap "T r") #'cj/test-run-smart))
+ (should (eq (keymap-lookup cj/custom-keymap "T R") #'cj/test-run-all))
+ (should (eq (keymap-lookup cj/custom-keymap "T .") #'cj/run-test-at-point))
+ (should (eq (keymap-lookup cj/custom-keymap "T t") #'cj/test-toggle-mode)))
+
+(ert-deftest test-testrunner-lowercase-t-prefix-is-released ()
+ "Boundary: the test runner no longer claims C-; t, which the terminal owns."
+ (should-not (eq (keymap-lookup cj/custom-keymap "t") cj/testrunner-map)))
+
(provide 'test-test-runner)
;;; test-test-runner.el ends here