fix(tests: screen-changes): take in account useless_gap

This commit is contained in:
actionless 2017-07-03 01:01:03 +02:00
parent eb7c203f99
commit 0488905fcc
1 changed files with 5 additions and 4 deletions

View File

@ -47,10 +47,11 @@ local steps = {
-- Everything should be done by now -- Everything should be done by now
local geom = test_client2:geometry() local geom = test_client2:geometry()
local bw = test_client2.border_width local bw = test_client2.border_width
assert(geom.x == 100, geom.x) local ug = test_client2:tags()[1].gap
assert(geom.y == 110, geom.y) assert(geom.x - 2*ug == 100, geom.x - 2*ug)
assert(geom.width + 2*bw == 600, geom.width + 2*bw) assert(geom.y - 2*ug == 110, geom.y - 2*ug)
assert(geom.height + 2*bw == 610, geom.height + 2*bw) assert(geom.width + 2*bw + 4*ug == 600, geom.width + 2*bw + 4*ug)
assert(geom.height + 2*bw + 4*ug == 610, geom.height + 2*bw + 4*ug)
local wb = fake_screen.mywibox local wb = fake_screen.mywibox
assert(wb.screen == fake_screen, tostring(wb.screen) .. " ~= " .. tostring(fake_screen)) assert(wb.screen == fake_screen, tostring(wb.screen) .. " ~= " .. tostring(fake_screen))