]> git.draconx.ca Git - rrace.git/blob - tests/gui.at
Use XPM as icon test output format.
[rrace.git] / tests / gui.at
1 # Copyright © 2022 Nick Bowler
2 #
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation, either version 3 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <https://www.gnu.org/licenses/>.
15
16 AT_SETUP([_NET_WM_ICON tiles (16x16)])
17
18 AT_CHECK([ewmhicon 16x16], [0], [[/* XPM */
19 static char *icon[] = {
20 "16 16 3 1",
21 ". c #ff0000",
22 "% c #00ff00",
23 "+ c #0000ff",
24 "....%+....%+....",
25 "....%+....%+....",
26 "....%+....%+....",
27 "....%+....%+....",
28 "%%%%%+%%%%%+%%%%",
29 "++++++++++++++++",
30 "....%+....%+....",
31 "....%+....%+....",
32 "....%+....%+....",
33 "....%+....%+....",
34 "%%%%%+%%%%%+%%%%",
35 "++++++++++++++++",
36 "....%+....%+....",
37 "....%+....%+....",
38 "....%+....%+....",
39 "....%+....%+...."
40 };
41 ]])
42
43 AT_CLEANUP
44
45 AT_SETUP([_NET_WM_ICON tiles (24x24)])
46
47 AT_CHECK([ewmhicon 24x24], [0], [[/* XPM */
48 static char *icon[] = {
49 "24 24 3 1",
50 ". c #ff0000",
51 "% c #00ff00",
52 "+ c #0000ff",
53 "++++++++++++++++++++++++",
54 "+......%+......%+......%",
55 "+......%+......%+......%",
56 "+......%+......%+......%",
57 "+......%+......%+......%",
58 "+......%+......%+......%",
59 "+......%+......%+......%",
60 "+%%%%%%%+%%%%%%%+%%%%%%%",
61 "++++++++++++++++++++++++",
62 "+......%+......%+......%",
63 "+......%+......%+......%",
64 "+......%+......%+......%",
65 "+......%+......%+......%",
66 "+......%+......%+......%",
67 "+......%+......%+......%",
68 "+%%%%%%%+%%%%%%%+%%%%%%%",
69 "++++++++++++++++++++++++",
70 "+......%+......%+......%",
71 "+......%+......%+......%",
72 "+......%+......%+......%",
73 "+......%+......%+......%",
74 "+......%+......%+......%",
75 "+......%+......%+......%",
76 "+%%%%%%%+%%%%%%%+%%%%%%%"
77 };
78 ]])
79
80 AT_CLEANUP
81
82 AT_SETUP([_NET_WM_ICON tiles (32x32)])
83
84 AT_CHECK([ewmhicon 32x32], [0], [[/* XPM */
85 static char *icon[] = {
86 "32 32 3 1",
87 ". c #ff0000",
88 "% c #00ff00",
89 "+ c #0000ff",
90 "++++++++++++++++++++++++++++++++",
91 "+.........%+........%+.........%",
92 "+.........%+........%+.........%",
93 "+.........%+........%+.........%",
94 "+.........%+........%+.........%",
95 "+.........%+........%+.........%",
96 "+.........%+........%+.........%",
97 "+.........%+........%+.........%",
98 "+.........%+........%+.........%",
99 "+.........%+........%+.........%",
100 "+%%%%%%%%%%+%%%%%%%%%+%%%%%%%%%%",
101 "++++++++++++++++++++++++++++++++",
102 "+.........%+........%+.........%",
103 "+.........%+........%+.........%",
104 "+.........%+........%+.........%",
105 "+.........%+........%+.........%",
106 "+.........%+........%+.........%",
107 "+.........%+........%+.........%",
108 "+.........%+........%+.........%",
109 "+.........%+........%+.........%",
110 "+%%%%%%%%%%+%%%%%%%%%+%%%%%%%%%%",
111 "++++++++++++++++++++++++++++++++",
112 "+.........%+........%+.........%",
113 "+.........%+........%+.........%",
114 "+.........%+........%+.........%",
115 "+.........%+........%+.........%",
116 "+.........%+........%+.........%",
117 "+.........%+........%+.........%",
118 "+.........%+........%+.........%",
119 "+.........%+........%+.........%",
120 "+.........%+........%+.........%",
121 "+%%%%%%%%%%+%%%%%%%%%+%%%%%%%%%%"
122 };
123 ]])
124
125 AT_CLEANUP
126
127 AT_SETUP([_NET_WM_ICON tiles (48x48)])
128
129 AT_CHECK([ewmhicon 48x48], [0], [[/* XPM */
130 static char *icon[] = {
131 "48 48 3 1",
132 ". c #ff0000",
133 "% c #00ff00",
134 "+ c #0000ff",
135 "++++++++++++++++++++++++++++++++++++++++++++++++",
136 "+++++++++++++++%+++++++++++++++%+++++++++++++++%",
137 "++............%%++............%%++............%%",
138 "++............%%++............%%++............%%",
139 "++............%%++............%%++............%%",
140 "++............%%++............%%++............%%",
141 "++............%%++............%%++............%%",
142 "++............%%++............%%++............%%",
143 "++............%%++............%%++............%%",
144 "++............%%++............%%++............%%",
145 "++............%%++............%%++............%%",
146 "++............%%++............%%++............%%",
147 "++............%%++............%%++............%%",
148 "++............%%++............%%++............%%",
149 "++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%",
150 "+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%",
151 "++++++++++++++++++++++++++++++++++++++++++++++++",
152 "+++++++++++++++%+++++++++++++++%+++++++++++++++%",
153 "++............%%++............%%++............%%",
154 "++............%%++............%%++............%%",
155 "++............%%++............%%++............%%",
156 "++............%%++............%%++............%%",
157 "++............%%++............%%++............%%",
158 "++............%%++............%%++............%%",
159 "++............%%++............%%++............%%",
160 "++............%%++............%%++............%%",
161 "++............%%++............%%++............%%",
162 "++............%%++............%%++............%%",
163 "++............%%++............%%++............%%",
164 "++............%%++............%%++............%%",
165 "++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%",
166 "+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%",
167 "++++++++++++++++++++++++++++++++++++++++++++++++",
168 "+++++++++++++++%+++++++++++++++%+++++++++++++++%",
169 "++............%%++............%%++............%%",
170 "++............%%++............%%++............%%",
171 "++............%%++............%%++............%%",
172 "++............%%++............%%++............%%",
173 "++............%%++............%%++............%%",
174 "++............%%++............%%++............%%",
175 "++............%%++............%%++............%%",
176 "++............%%++............%%++............%%",
177 "++............%%++............%%++............%%",
178 "++............%%++............%%++............%%",
179 "++............%%++............%%++............%%",
180 "++............%%++............%%++............%%",
181 "++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%",
182 "+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%"
183 };
184 ]])
185
186 AT_CLEANUP