From 0488905fccf3db45afbd63de74ec0a20316ed7b9 Mon Sep 17 00:00:00 2001 From: actionless Date: Mon, 3 Jul 2017 01:01:03 +0200 Subject: [PATCH] fix(tests: screen-changes): take in account useless_gap --- tests/test-screen-changes.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test-screen-changes.lua b/tests/test-screen-changes.lua index 68d624ad6..12146c44b 100644 --- a/tests/test-screen-changes.lua +++ b/tests/test-screen-changes.lua @@ -47,10 +47,11 @@ local steps = { -- Everything should be done by now local geom = test_client2:geometry() local bw = test_client2.border_width - assert(geom.x == 100, geom.x) - assert(geom.y == 110, geom.y) - assert(geom.width + 2*bw == 600, geom.width + 2*bw) - assert(geom.height + 2*bw == 610, geom.height + 2*bw) + local ug = test_client2:tags()[1].gap + assert(geom.x - 2*ug == 100, geom.x - 2*ug) + assert(geom.y - 2*ug == 110, geom.y - 2*ug) + 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 assert(wb.screen == fake_screen, tostring(wb.screen) .. " ~= " .. tostring(fake_screen))