mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
; Silence obsoletion warning in mwheel-tests.
This commit is contained in:
parent
f804a492bf
commit
04635f399b
@ -23,10 +23,12 @@
|
||||
(require 'mwheel)
|
||||
|
||||
(ert-deftest mwheel-test-enable/disable ()
|
||||
(mouse-wheel-mode 1)
|
||||
(should (eq (lookup-key (current-global-map) `[,mouse-wheel-up-event]) 'mwheel-scroll))
|
||||
(mouse-wheel-mode -1)
|
||||
(should (eq (lookup-key (current-global-map) `[,mouse-wheel-up-event]) nil)))
|
||||
(with-suppressed-warnings ((obsolete mouse-wheel-up-event))
|
||||
(mouse-wheel-mode 1)
|
||||
(should (eq (lookup-key (current-global-map) `[,mouse-wheel-up-event])
|
||||
'mwheel-scroll))
|
||||
(mouse-wheel-mode -1)
|
||||
(should-not (lookup-key (current-global-map) `[,mouse-wheel-up-event]))))
|
||||
|
||||
(ert-deftest mwheel-test--create-scroll-keys ()
|
||||
(should (equal (mouse-wheel--create-scroll-keys 10 'mouse-4)
|
||||
|
Loading…
Reference in New Issue
Block a user