annotate tests/frame.el @ 3025:facf3239ba30
[xemacs-hg @ 2005-10-25 11:16:19 by ben]
rename new->new_, convert 'foo to `foo'
EmacsFrame.c, ExternalClient.c, ExternalShell.c, chartab.c, cmdloop.c, compiler.h, console.c, database.c, device-msw.c, device-x.c, device.c, doc.c, dragdrop.c, eval.c, event-msw.c, event-stream.c, events.c, extents.c, file-coding.c, fns.c, frame-tty.c, frame.c, gpmevent.c, gutter.c, hash.c, imgproc.c, indent.c, keymap.c, lisp-union.h, macros.c, malloc.c, marker.c, menubar-x.c, menubar.c, mule-charset.c, number.c, process.c, profile.h, ralloc.c, redisplay.c, select-common.h, select.c, syntax.c, sysfile.h, sysproc.h, systime.h, syswindows.h, toolbar.c, tooltalk.c, tparam.c, unexaix.c, unexalpha.c, unexconvex.c, unexec.c, unexhp9k800.c, unexmips.c, unicode.c, window.c: new -> new_.
'foo -> `foo'.
lwlib-internal.h: redo assert macros to follow lisp.h and not trigger warnings.
lwlib.c, xlwtabs.c: new -> new_.
author |
ben |
date |
Tue, 25 Oct 2005 11:16:49 +0000 |
parents |
360340f9fd5f |
children |
931aaa7a6b37 |
rev |
line source |
108
|
1 ;;; Test geometry settings for frames
|
|
2 (defmacro check-frame-geometry (xx yy)
|
|
3 `(loop for frame in (list nil (selected-frame))
|
|
4 do
|
|
5 (assert (eq (frame-property frame 'top) ,yy))
|
|
6 (assert (eq (frame-property frame 'left) ,xx))
|
|
7 (assert (eq (frame-property frame 'top) ,yy))
|
|
8 (assert (eq (frame-property frame 'left) ,xx))
|
|
9 (loop for plist in
|
|
10 (list (frame-properties)
|
|
11 (frame-properties nil)
|
|
12 (frame-properties (selected-frame)))
|
|
13 do
|
|
14 (assert (eq (plist-get plist 'top) ,yy))
|
|
15 (assert (eq (plist-get plist 'left) ,xx)))))
|
|
16
|
|
17 (loop for (x y) in '((0 0) (1 1) (3 3) (9 9) (10 20) (20 40) (40 80) (100 200))
|
|
18 do
|
|
19 (loop for frame in (list nil (selected-frame))
|
|
20 do
|
|
21 (set-frame-properties frame `(left ,x top ,y))
|
|
22 (check-frame-geometry x y)
|
|
23 (set-frame-property frame 'top (+ y 3))
|
|
24 (check-frame-geometry x (+ y 3))
|
|
25 (set-frame-property frame 'left (+ x 3))
|
|
26 (check-frame-geometry (+ x 3) (+ y 3))))
|
|
27
|