annotate tests/frame.el @ 4124:9a633a00c3f2

[xemacs-hg @ 2007-08-17 08:08:05 by crestani] 2007-08-15 Marcus Crestani <crestani@xemacs.org> * database.c (dbm_map): Add typecast. * database.c (dbm_get): Add typecast. * gc.c (gc_state_type): Declare type. * objects-tty.c (tty_find_charset_font): Add typecast. * objects-xlike-inc.c (count_hyphens): Add typecast. * objects-xlike-inc.c (endif): Add typecast.
author crestani
date Fri, 17 Aug 2007 08:08:10 +0000
parents 360340f9fd5f
children 931aaa7a6b37
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
1 ;;; Test geometry settings for frames
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
2 (defmacro check-frame-geometry (xx yy)
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
3 `(loop for frame in (list nil (selected-frame))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
4 do
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
5 (assert (eq (frame-property frame 'top) ,yy))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
6 (assert (eq (frame-property frame 'left) ,xx))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
7 (assert (eq (frame-property frame 'top) ,yy))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
8 (assert (eq (frame-property frame 'left) ,xx))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
9 (loop for plist in
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
10 (list (frame-properties)
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
11 (frame-properties nil)
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
12 (frame-properties (selected-frame)))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
13 do
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
14 (assert (eq (plist-get plist 'top) ,yy))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
15 (assert (eq (plist-get plist 'left) ,xx)))))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
16
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
17 (loop for (x y) in '((0 0) (1 1) (3 3) (9 9) (10 20) (20 40) (40 80) (100 200))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
18 do
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
19 (loop for frame in (list nil (selected-frame))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
20 do
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
21 (set-frame-properties frame `(left ,x top ,y))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
22 (check-frame-geometry x y)
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
23 (set-frame-property frame 'top (+ y 3))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
24 (check-frame-geometry x (+ y 3))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
25 (set-frame-property frame 'left (+ x 3))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
26 (check-frame-geometry (+ x 3) (+ y 3))))
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents:
diff changeset
27