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:
parent
08555a4fed
commit
3e0eefe3bc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue