summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-10-21 20:21:53 +0200
committerDave Davenport <qball@gmpclient.org>2016-10-21 20:21:53 +0200
commitb8fd2ce7382ad6c4616918af3f9a22f38f84612d (patch)
tree2d69b2998b01a94c9bcc26232c0314a870e2daa4 /test
parentf602ea1486ef4d35d431ccda12bbe54e118f3318 (diff)
Add two more cases to the test.
Diffstat (limited to 'test')
-rw-r--r--test/box-test.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/box-test.c b/test/box-test.c
index ef305dd3..909943dd 100644
--- a/test/box-test.c
+++ b/test/box-test.c
@@ -79,6 +79,11 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
widget_resize ( WIDGET ( wid4 ), 20, 20 );
box_add ( b , WIDGET( wid4 ), FALSE, TRUE );
TASSERTE ( wid4->x, 200-20);
+ widget *wid5 = g_malloc0(sizeof(widget));
+ widget_enable ( WIDGET ( wid5 ) );
+ widget_resize ( WIDGET ( wid5 ), 20, 20 );
+ box_add ( b , WIDGET( wid5 ), TRUE, TRUE );
+ TASSERTE ( wid5->x, 200-20-20-6);
widget_free ( WIDGET ( b ) );
}
{
@@ -134,6 +139,11 @@ int main ( G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv )
widget_resize ( WIDGET ( wid4 ), 20, 20 );
box_add ( b , WIDGET( wid4 ), FALSE, TRUE );
TASSERTE ( wid4->y, 200-20);
+ widget *wid5 = g_malloc0(sizeof(widget));
+ widget_enable ( WIDGET ( wid5 ) );
+ widget_resize ( WIDGET ( wid5 ), 20, 20 );
+ box_add ( b , WIDGET( wid5 ), TRUE, TRUE );
+ TASSERTE ( wid5->y, 200-20-20-6);
widget_free ( WIDGET ( b ) );
}
}