From 3e0eefe3bc239ffa3ffe39b9711f1068786b29cb Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 26 May 2017 12:32:04 +0200 Subject: [PATCH] Add a test case for some recent bug This test would have caught https://github.com/awesomeWM/awesome/issues/1607. Signed-off-by: Uli Schlachter --- tests/test-maximize.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test-maximize.lua b/tests/test-maximize.lua index 21ff9c185..84831e0da 100644 --- a/tests/test-maximize.lua +++ b/tests/test-maximize.lua @@ -26,7 +26,7 @@ end local steps = { function(count) if count == 1 then - test_client(nil,nil,nil,nil,nil,{gravity=lgi.Gdk.Gravity.NORTH_WEST}) + test_client(nil,nil,nil,nil,nil,{gravity=lgi.Gdk.Gravity.STATIC}) else local c = client.get()[1] if c then @@ -71,6 +71,11 @@ local steps = { c.border_width = test_width c.fullscreen = true + + -- Test that the client covers the full screen + assert(geo_to_str(c:geometry()) == geo_to_str(c.screen.geometry), + geo_to_str(c:geometry()) .. " == " .. geo_to_str(c.screen.geometry)) + c.fullscreen = false assert(c.border_width == test_width)