]> git.draconx.ca Git - rrace.git/blobdiff - tests/gui.at
Implement window icons.
[rrace.git] / tests / gui.at
diff --git a/tests/gui.at b/tests/gui.at
new file mode 100644 (file)
index 0000000..95d33fd
--- /dev/null
@@ -0,0 +1,162 @@
+# Copyright © 2022 Nick Bowler
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <https://www.gnu.org/licenses/>.
+
+AT_SETUP([_NET_WM_ICON tiles (16x16)])
+
+AT_CHECK([ewmhicon 16x16], [0], [dnl
+....%+....%+....
+....%+....%+....
+....%+....%+....
+....%+....%+....
+%%%%%+%%%%%+%%%%
+++++++++++++++++
+....%+....%+....
+....%+....%+....
+....%+....%+....
+....%+....%+....
+%%%%%+%%%%%+%%%%
+++++++++++++++++
+....%+....%+....
+....%+....%+....
+....%+....%+....
+....%+....%+....
+])
+
+AT_CLEANUP
+
+AT_SETUP([_NET_WM_ICON tiles (24x24)])
+
+AT_CHECK([ewmhicon 24x24], [0], [dnl
+++++++++++++++++++++++++
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++%%%%%%%+%%%%%%%+%%%%%%%
+++++++++++++++++++++++++
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++%%%%%%%+%%%%%%%+%%%%%%%
+++++++++++++++++++++++++
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++......%+......%+......%
++%%%%%%%+%%%%%%%+%%%%%%%
+])
+
+AT_CLEANUP
+
+AT_SETUP([_NET_WM_ICON tiles (32x32)])
+
+AT_CHECK([ewmhicon 32x32], [0], [dnl
+++++++++++++++++++++++++++++++++
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++%%%%%%%%%%+%%%%%%%%%+%%%%%%%%%%
+++++++++++++++++++++++++++++++++
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++%%%%%%%%%%+%%%%%%%%%+%%%%%%%%%%
+++++++++++++++++++++++++++++++++
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++.........%+........%+.........%
++%%%%%%%%%%+%%%%%%%%%+%%%%%%%%%%
+])
+
+AT_CLEANUP
+
+AT_SETUP([_NET_WM_ICON tiles (48x48)])
+
+AT_CHECK([ewmhicon 48x48], [0], [dnl
+++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++%+++++++++++++++%+++++++++++++++%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%
++%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%
+++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++%+++++++++++++++%+++++++++++++++%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%
++%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%
+++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++%+++++++++++++++%+++++++++++++++%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++............%%++............%%++............%%
+++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%++%%%%%%%%%%%%%%
++%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%+%%%%%%%%%%%%%%%
+])
+
+AT_CLEANUP