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 = {
|
local steps = {
|
||||||
function(count)
|
function(count)
|
||||||
if count == 1 then
|
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
|
else
|
||||||
local c = client.get()[1]
|
local c = client.get()[1]
|
||||||
if c then
|
if c then
|
||||||
|
@ -71,6 +71,11 @@ local steps = {
|
||||||
c.border_width = test_width
|
c.border_width = test_width
|
||||||
|
|
||||||
c.fullscreen = true
|
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
|
c.fullscreen = false
|
||||||
|
|
||||||
assert(c.border_width == test_width)
|
assert(c.border_width == test_width)
|
||||||
|
|
Loading…
Reference in New Issue