From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: Need for a Emacs regression test suite Date: Mon, 10 Sep 2007 12:12:55 -0700 (PDT) Message-ID: <37835.128.165.123.18.1189451575.squirrel@webmail.lanl.gov> References: <87bqcapccs.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1189454671 23258 80.91.229.12 (10 Sep 2007 20:04:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 20:04:31 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 06:04:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUwBc-0004OT-27 for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 05:13:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUohF-0000GD-9j for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 15:13:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUohB-0000Fd-MN for emacs-devel@gnu.org; Mon, 10 Sep 2007 15:13:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUoh8-0000FM-Cr for emacs-devel@gnu.org; Mon, 10 Sep 2007 15:13:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUoh8-0000FJ-7E for emacs-devel@gnu.org; Mon, 10 Sep 2007 15:13:14 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUoh3-0006U0-Sb; Mon, 10 Sep 2007 15:13:10 -0400 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.13.8/8.13.6/(ccn-5)) with ESMTP id l8AJD3Of014321; Mon, 10 Sep 2007 13:13:03 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l8AJCtJS023623; Mon, 10 Sep 2007 13:12:55 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l8AJCtrI023704; Mon, 10 Sep 2007 13:12:55 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l8AJCtYR023702; Mon, 10 Sep 2007 12:12:55 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Mon, 10 Sep 2007 12:12:55 -0700 (PDT) In-Reply-To: <87bqcapccs.fsf@uwakimon.sk.tsukuba.ac.jp> User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78487 Archived-At: > > But the suggestion was "to test the GUI invocation". I don't see how > > regression tests for that could possibly work. Does XEmacs' testing > > framework apply to user input operations? > > Not currently. I don't know about Windows and Carbon, but it would > not be impossible to develop a framework to generate X events to send > to X windows at known positions. (Ie, you would arrange for a frame > to be created at 0,0, then you can send mouse clicks to the menubar > and things like that, also keystroke events.) Since Windows and > Carbon are designed for operation only the local console an entirely > different approach would have to be taken, I suppose. > > These tests can easily be done in LISP, since there is an xlib package > and an X window manager, both written entirely in LISP. See also java.awt.Robot: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html. That page says that it uses the XTEST extension on X, and I have seen it work on Windows (so there is presumably a painless way to do it). Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.