aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/subr-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el
index e0826208b60..fc5a1eba6d8 100644
--- a/test/lisp/subr-tests.el
+++ b/test/lisp/subr-tests.el
@@ -87,6 +87,17 @@
87 ;; Returns the symbol. 87 ;; Returns the symbol.
88 (should (eq (define-prefix-command 'foo-bar) 'foo-bar))) 88 (should (eq (define-prefix-command 'foo-bar) 'foo-bar)))
89 89
90(ert-deftest subr-test-local-key-binding ()
91 (with-temp-buffer
92 (emacs-lisp-mode)
93 (should (keymapp (local-key-binding [menu-bar])))
94 (should-not (local-key-binding [f12]))))
95
96(ert-deftest subr-test-global-key-binding ()
97 (should (eq (global-key-binding [f1]) 'help-command))
98 (should (eq (global-key-binding "x") 'self-insert-command))
99 (should-not (global-key-binding [f12])))
100
90 101
91;;;; Mode hooks. 102;;;; Mode hooks.
92 103