diff options
Diffstat (limited to 'test/lisp')
-rw-r--r-- | test/lisp/use-package/use-package-tests.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/lisp/use-package/use-package-tests.el b/test/lisp/use-package/use-package-tests.el index 5d346d94df3..f0784315f75 100644 --- a/test/lisp/use-package/use-package-tests.el +++ b/test/lisp/use-package/use-package-tests.el @@ -1936,11 +1936,17 @@ (define-prefix-command 'my/map) (bind-key "<f1>" 'my/map nil nil)))) -(defvar test-map (make-keymap)) (ert-deftest bind-key/845 () - (bind-key "C-c f" 'ignore 'test-map) - (describe-personal-keybindings)) + (defvar test-map (make-keymap)) + (bind-key "<f1>" 'ignore 'test-map) + (should (eq (lookup-key test-map (kbd "<f1>")) 'ignore)) + (let ((binding (cl-find "<f1>" personal-keybindings :test 'string= :key 'caar))) + (message "test-map %s" test-map) + (message "binding %s" binding) + (should (eq (cdar binding) 'test-map)) + (should (eq (nth 1 binding) 'ignore)) + (should (eq (nth 2 binding) nil)))) ;; Local Variables: ;; indent-tabs-mode: nil |