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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-05-26 12:32:04 +02:00
parent 08555a4fed
commit 3e0eefe3bc
1 changed files with 6 additions and 1 deletions

View File

@ -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)