diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/testboxes.c | 13 |
2 files changed, 11 insertions, 5 deletions
@@ -11,6 +11,9 @@ different than original version and most testcases not catching the difference... + * src/testboxes.c (test_gravity_resize): modify one of the tests + so that it would have caught the above bug + 2005-10-21 Elijah Newren <newren@gmail.com> * constraints-ideas.txt: Five quick ideas/problems/cleanups I diff --git a/src/testboxes.c b/src/testboxes.c index dd961590..fd9d8a9c 100644 --- a/src/testboxes.c +++ b/src/testboxes.c @@ -838,11 +838,14 @@ test_shoving_into_region () static void test_gravity_resize () { - MetaRectangle rect, temp; - - rect = meta_rect ( 50, 300, 250, 400); - temp = meta_rect ( 50, 300, 20, 5); - meta_rectangle_resize_with_gravity (&rect, + MetaRectangle oldrect, rect, temp; + + rect.x = -500; /* Some random amount not equal to oldrect.x to ensure that + * the resize is done with respect to oldrect instead of rect + */ + oldrect = meta_rect ( 50, 300, 250, 400); + temp = meta_rect ( 50, 300, 20, 5); + meta_rectangle_resize_with_gravity (&oldrect, &rect, NorthWestGravity, 20, |