emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Test cases and Emacs bugs


From: Lennart Borgman (gmail)
Subject: Test cases and Emacs bugs
Date: Fri, 08 Aug 2008 03:22:54 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

With some help of Christian I have been writing some test cases using ert.el. I have found ert.el easy to use.

I know that Christian and Phil wants to improve it more. (And I have some suggestions based on the few tests I have written so far.) I think that here is a good chance to get a unit test framework into Emacs.

Most of the few tests so far are for nXhtml, but I just wrote a test for how scrolling is done when `scroll-conservatively' is 1. I wondered if it was possible to test this. It seems so.

(The result of this test actually shows that Emacs sometimes scrolls more than 1 line when calling next-line repeatedly. Is this expected or is it a bug?)

If someone is interested in looking at this it is currently all in nXhtml package (otherwise I would not have time to test). The test above is in the latest beta which is here:

  http://ourcomments.org/Emacs/DL/elisp/nxhtml/beta/

Maybe this can be used when reporting bugs? Either the reporter or someone who tries to fix it could write a test for the bug.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]