<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/test/manual/scroll-tests.el, branch feature/new-tutorial</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Fix scrolling with partial line corner case (Bug#25792)</title>
<updated>2017-02-25T04:15:40+00:00</updated>
<author>
<name>Noam Postavsky</name>
</author>
<published>2017-02-20T18:34:39+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f0e7f39e0b4026a3d613416ad8ffc84e6b74242b'/>
<id>f0e7f39e0b4026a3d613416ad8ffc84e6b74242b</id>
<content type='text'>
Also fix up the scrolling tests so that they don't make so many
assumptions about the current window configuration.

* src/xdisp.c (try_window): Take partial line height into account when
comparing cursor position against scroll margin.

* test/manual/scroll-tests.el (scroll-tests-with-buffer-window): Add
HEIGHT argument, to allow setting up window with exact height and
partial line.
(scroll-tests-display-buffer-with-height): New display-buffer action
function.
(scroll-tests-scroll-margin-over-max):
(scroll-tests--scroll-margin-whole-window): Pass HEIGHT to
`scroll-tests--scroll-margin-whole-window'.
(scroll-tests-conservative-show-trailing-whitespace): New test.
(scroll-tests-scroll-margin-negative): Fix line counting.
(scroll-tests--point-in-middle-of-window-p): Set window height
properly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also fix up the scrolling tests so that they don't make so many
assumptions about the current window configuration.

* src/xdisp.c (try_window): Take partial line height into account when
comparing cursor position against scroll margin.

* test/manual/scroll-tests.el (scroll-tests-with-buffer-window): Add
HEIGHT argument, to allow setting up window with exact height and
partial line.
(scroll-tests-display-buffer-with-height): New display-buffer action
function.
(scroll-tests-scroll-margin-over-max):
(scroll-tests--scroll-margin-whole-window): Pass HEIGHT to
`scroll-tests--scroll-margin-whole-window'.
(scroll-tests-conservative-show-trailing-whitespace): New test.
(scroll-tests-scroll-margin-negative): Fix line counting.
(scroll-tests--point-in-middle-of-window-p): Set window height
properly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for scrolling</title>
<updated>2017-02-03T02:21:18+00:00</updated>
<author>
<name>Noam Postavsky</name>
</author>
<published>2017-01-28T21:54:33+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=da515a0d8e97d89a1c7e60faea190174a8c72618'/>
<id>da515a0d8e97d89a1c7e60faea190174a8c72618</id>
<content type='text'>
* test/manual/scroll-tests.el: New tests for scroll-margin behavior.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* test/manual/scroll-tests.el: New tests for scroll-margin behavior.
</pre>
</div>
</content>
</entry>
</feed>
