summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-05-08 12:29:58 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-05-11 22:21:39 -0400
commitc0657297d17840893d210a44063ddb87db0d39a4 (patch)
tree31b9862b3e7c3296fbcfe8a4e9d5901fe191ef11 /testsuite
parent932aa58237d5162c1e499dab4bb54adb4cabb970 (diff)
downloadgtk+-c0657297d17840893d210a44063ddb87db0d39a4.tar.gz
grid: Remove a test for grid container functionality
This test was specifically testing how gtk_container_add behaves on grids. Well, it doesn't anymore.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gtk/grid.c55
1 files changed, 0 insertions, 55 deletions
diff --git a/testsuite/gtk/grid.c b/testsuite/gtk/grid.c
index 34feec7107..cfb2a3d82c 100644
--- a/testsuite/gtk/grid.c
+++ b/testsuite/gtk/grid.c
@@ -130,60 +130,6 @@ test_attach (void)
g_assert_cmpint (height, ==, 3);
}
-static void
-test_add (void)
-{
- GtkGrid *g;
- GtkWidget *child;
- gint left, top, width, height;
-
- g = (GtkGrid *)gtk_grid_new ();
-
- gtk_orientable_set_orientation (GTK_ORIENTABLE (g), GTK_ORIENTATION_HORIZONTAL);
-
- child = gtk_label_new ("a");
- gtk_container_add (GTK_CONTAINER (g), child);
- gtk_grid_query_child (g, child,
- &left, &top,
- &width, &height);
- g_assert_cmpint (left, ==, 0);
- g_assert_cmpint (top, ==, 0);
- g_assert_cmpint (width, ==, 1);
- g_assert_cmpint (height, ==, 1);
-
- child = gtk_label_new ("b");
- gtk_container_add (GTK_CONTAINER (g), child);
- gtk_grid_query_child (g, child,
- &left, &top,
- &width, &height);
- g_assert_cmpint (left, ==, 1);
- g_assert_cmpint (top, ==, 0);
- g_assert_cmpint (width, ==, 1);
- g_assert_cmpint (height, ==, 1);
-
- child = gtk_label_new ("c");
- gtk_container_add (GTK_CONTAINER (g), child);
- gtk_grid_query_child (g, child,
- &left, &top,
- &width, &height);
- g_assert_cmpint (left, ==, 2);
- g_assert_cmpint (top, ==, 0);
- g_assert_cmpint (width, ==, 1);
- g_assert_cmpint (height, ==, 1);
-
- gtk_orientable_set_orientation (GTK_ORIENTABLE (g), GTK_ORIENTATION_VERTICAL);
-
- child = gtk_label_new ("d");
- gtk_container_add (GTK_CONTAINER (g), child);
- gtk_grid_query_child (g, child,
- &left, &top,
- &width, &height);
- g_assert_cmpint (left, ==, 0);
- g_assert_cmpint (top, ==, 1);
- g_assert_cmpint (width, ==, 1);
- g_assert_cmpint (height, ==, 1);
-}
-
int
main (int argc,
char *argv[])
@@ -191,7 +137,6 @@ main (int argc,
gtk_test_init (&argc, &argv);
g_test_add_func ("/grid/attach", test_attach);
- g_test_add_func ("/grid/add", test_add);
return g_test_run();
}