From: "Daniel Martín" <mardani29@yahoo.es>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Stefan Kangas <stefankangas@gmail.com>,
Vin Shelton <acs@alumni.princeton.edu>,
emacs-devel@gnu.org
Subject: Re: Fwd: 13 Test Failures
Date: Tue, 08 Sep 2020 14:35:18 +0200 [thread overview]
Message-ID: <m1zh60xx89.fsf@yahoo.es> (raw)
In-Reply-To: <87wo155zg3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 07 Sep 2020 18:22:36 +0200")
[-- Attachment #1: Type: text/plain, Size: 318 bytes --]
Lars Ingebrigtsen <larsi@gnus.org> writes:
> I've now fixed both the test failures so that "make check" in the main
> directory now has now unexpected results (on Debian bullseye).
One of the tests in mwheel-tests.el fails on macOS (and possibly other
platforms). I've attached a patch to fix the problem.
Thanks.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Use-mouse-wheel-up-event-in-mwheel-tests.el.patch --]
[-- Type: text/x-patch, Size: 1421 bytes --]
From 883c892436affce26726bdd2f91b6ed9e24c9e6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
Date: Tue, 8 Sep 2020 14:18:17 +0200
Subject: [PATCH] Use mouse-wheel-up-event in mwheel-tests.el
Enabling mouse-wheel-mode binds two different mouse events, depending
on the operating system. The correct way to check for those events is
by checking mouse-wheel-up-event, as explained in the ELisp manual.
* test/lisp/mwheel-tests.el (mwheel-test-enable/disable): Check
mouse-wheel-up-event instead of mouse-4 to make the test work
irrespective of the platform it's running.
---
test/lisp/mwheel-tests.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/lisp/mwheel-tests.el b/test/lisp/mwheel-tests.el
index fd998fd4f0..315f25edae 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)
--
2.28.0
[-- Attachment #3: Type: text/plain, Size: 22 bytes --]
--
Daniel Martín
next prev parent reply other threads:[~2020-09-08 12:35 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 12:58 13 Test Failures Vin Shelton
2020-09-07 13:01 ` Fwd: " Vin Shelton
2020-09-07 13:37 ` Lars Ingebrigtsen
2020-09-07 13:38 ` Lars Ingebrigtsen
2020-09-07 15:13 ` Stefan Kangas
2020-09-07 16:07 ` Lars Ingebrigtsen
2020-09-07 16:22 ` Lars Ingebrigtsen
2020-09-07 16:32 ` Vin Shelton
2020-09-07 16:48 ` Stefan Kangas
2020-09-08 12:35 ` Daniel Martín [this message]
2020-09-08 14:26 ` Stefan Kangas
2020-09-08 16:14 ` Daniel Martín
2020-09-08 16:34 ` Stefan Kangas
2020-09-08 15:26 ` Vin Shelton
2020-09-08 16:17 ` Robert Pluim
2020-09-10 13:08 ` Vin Shelton
2020-09-10 13:35 ` Robert Pluim
2020-09-07 14:42 ` Stephen Berman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1zh60xx89.fsf@yahoo.es \
--to=mardani29@yahoo.es \
--cc=acs@alumni.princeton.edu \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=stefankangas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.