unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: psainty@orcon.net.nz, emacs-devel@gnu.org
Subject: Re: 27.0.50: How can I test a buffer-local window-configuration-change-hook in batch mode?
Date: Fri, 25 Oct 2019 11:27:00 -0400	[thread overview]
Message-ID: <jwv8sp8q2fp.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83d0elvsfu.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Oct 2019 16:57:25 +0300")

> Thanks.  However, unless these emulators are components of a
> garden-variety system out there, using them for Emacs testing would
> mean that only a few of us could ever run these tests.

Yes, it's not a real solution, especially since we don't even have
a "sample" to point to for other people to write&run such tests.

Maybe a better approach would be to allow Emacs to run the redisplay
in batch mode (i.e. build glyph matrices and just do nothing for the
actual redraw).

> Also, using a display emulator for such testing would most probably
> mean we cannot verify the correctness of the resulting display in some
> automated way, as we do with ert facilities.

Indeed, it doesn't solve all display-testing problems.  It would be good
enough for the window-configuration-change-hook case and a few others
(e.g. testing window-start and window-end positions, or pixel position
of particular chunks of text), but to do anything more we'd probably
have to provide ways to examine the glyph matrix.

> Bottom line: I think using these emulators is only a very partial
> solution to being able to test our display code.

I only meant it for people who want to start writing such tests, in the
absence of actual support for that.


        Stefan




  reply	other threads:[~2019-10-25 15:27 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-24 10:50 27.0.50: How can I test a buffer-local window-configuration-change-hook in batch mode? Phil Sainty
2019-10-24 14:23 ` Eli Zaretskii
2019-10-24 23:53   ` Phil Sainty
2019-10-25  8:37     ` Eli Zaretskii
2019-10-25  9:20       ` martin rudalics
2019-10-25  9:34         ` Eli Zaretskii
2019-10-26  7:49           ` martin rudalics
2019-10-26  9:08             ` Eli Zaretskii
2019-10-25 10:31       ` Phil Sainty
2019-10-25 12:42         ` Eli Zaretskii
2019-10-25 12:53           ` Stefan Monnier
2019-10-25 13:57             ` Eli Zaretskii
2019-10-25 15:27               ` Stefan Monnier [this message]
2019-10-25 18:41                 ` Eli Zaretskii
2019-10-26 12:33               ` Lars Ingebrigtsen
2019-10-26 12:53                 ` Eli Zaretskii
2019-10-26 13:13                   ` Lars Ingebrigtsen
2019-10-26 13:33                     ` Eli Zaretskii
2019-10-26 13:50                       ` Lars Ingebrigtsen
2019-10-26 14:34                         ` Eli Zaretskii
2019-10-26 14:45                           ` Lars Ingebrigtsen
2019-10-26 15:07                             ` Eli Zaretskii
2019-10-25 13:16           ` Phil Sainty
2019-10-25 13:44             ` Eli Zaretskii
2019-10-25  8:51     ` martin rudalics
2019-10-25 10:54       ` Phil Sainty
2019-10-26  7:49         ` martin rudalics
2019-10-26  9:07           ` Eli Zaretskii
2019-10-26 10:57             ` Phil Sainty
2019-10-26 11:28               ` Eli Zaretskii
2019-10-26 12:11                 ` Stefan Monnier
2019-10-26 12:32                   ` Eli Zaretskii
2019-10-26 15:59                     ` Stefan Monnier
2019-10-26 16:28                       ` Eli Zaretskii
2019-10-26 17:14                         ` Stefan Monnier
2019-10-26 17:35                           ` Eli Zaretskii
2019-10-26 19:53                             ` Stefan Monnier
2019-10-26 20:18                               ` Eli Zaretskii
2019-10-26 13:09                 ` Phil Sainty
2019-10-26 13:31                   ` Eli Zaretskii
2019-10-26 12:05           ` Stefan Monnier
2019-10-27  7:49             ` martin rudalics
2019-10-27 17:40               ` Stefan Monnier
2019-10-28  9:39                 ` martin rudalics
2019-11-10  3:50                   ` so-long.el updates (was Re: 27.0.50: How can I test a buffer-local window-configuration-change-hook in batch mode?) Phil Sainty

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv8sp8q2fp.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=psainty@orcon.net.nz \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).