diff --git a/test/lisp/mwheel-tests.el b/test/lisp/mwheel-tests.el index fd998fd4f0e..315f25edae8 100644 --- a/test/lisp/mwheel-tests.el +++ b/test/lisp/mwheel-tests.el @@ -24,9 +24,9 @@ (ert-deftest mwheel-test-enable/disable () (mouse-wheel-mode 1) - (should (eq (lookup-key (current-global-map) '[mouse-4]) 'mwheel-scroll)) + (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-4]) nil))) + (should (eq (lookup-key (current-global-map) `[,mouse-wheel-up-event]) nil))) (ert-deftest mwheel-test--create-scroll-keys () (should (equal (mouse-wheel--create-scroll-keys 10 'mouse-4)