tests: Check if using client icon doesn't exceed the size constraints.
This commit is contained in:
parent
6761778830
commit
aed2af44b6
|
@ -556,6 +556,16 @@ table.insert(steps, function()
|
||||||
assert(n2.box.width +2*n2.box.border_width <= wa.width )
|
assert(n2.box.width +2*n2.box.border_width <= wa.width )
|
||||||
assert(n2.box.height+2*n2.box.border_width <= wa.height)
|
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()
|
n1:destroy()
|
||||||
n2:destroy()
|
n2:destroy()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue