tests: Check if using client icon doesn't exceed the size constraints.

This commit is contained in:
Emmanuel Lepage Vallee 2019-07-17 03:26:17 -04:00
parent 6761778830
commit aed2af44b6
1 changed files with 10 additions and 0 deletions

View File

@ -556,6 +556,16 @@ table.insert(steps, function()
assert(n2.box.width +2*n2.box.border_width <= wa.width )
assert(n2.box.height+2*n2.box.border_width <= wa.height)
-- Check with client icons.
assert(not n1.icon)
n1._private.clients = {{icon= big_icon, type = "normal"}}
assert(n1.icon == big_icon)
assert(n1.box.width +2*n1.box.border_width <= wa.width )
assert(n1.box.height+2*n1.box.border_width <= wa.height)
assert(n2.box.width +2*n2.box.border_width <= wa.width )
assert(n2.box.height+2*n2.box.border_width <= wa.height)
n1:destroy()
n2:destroy()