summaryrefslogtreecommitdiffstats
path: root/subprojects/libhandy/tests/test-window.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
commit9b6d8e63db85c30007b463e91f91a791969fa83f (patch)
tree0899af51d73c1bf986f73ae39a03c4436083018a /subprojects/libhandy/tests/test-window.c
parentInitial commit. (diff)
downloadgnome-control-center-9b6d8e63db85c30007b463e91f91a791969fa83f.tar.xz
gnome-control-center-9b6d8e63db85c30007b463e91f91a791969fa83f.zip
Adding upstream version 1:3.38.4.upstream/1%3.38.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--subprojects/libhandy/tests/test-window.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/subprojects/libhandy/tests/test-window.c b/subprojects/libhandy/tests/test-window.c
new file mode 100644
index 0000000..4b286de
--- /dev/null
+++ b/subprojects/libhandy/tests/test-window.c
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2020 Alexander Mikhaylenko <alexm@gnome.org>
+ *
+ * SPDX-License-Identifier: LGPL-2.1+
+ */
+
+#include <handy.h>
+
+
+static void
+test_hdy_window_new (void)
+{
+ g_autoptr (GtkWidget) window = NULL;
+
+ window = g_object_ref_sink (hdy_window_new ());
+ g_assert_nonnull (window);
+}
+
+
+gint
+main (gint argc,
+ gchar *argv[])
+{
+ gtk_test_init (&argc, &argv, NULL);
+ hdy_init ();
+
+ g_test_add_func("/Handy/Window/new", test_hdy_window_new);
+
+ return g_test_run();
+}