tests: Add size changes to the `xeyes` test.

It should trigger some shape related code in the core which wasn't
hit reliably until now.
This commit is contained in:
Emmanuel Lepage Vallee 2021-10-28 20:25:35 -07:00
parent 6615772d10
commit 15f63c700c
1 changed files with 19 additions and 0 deletions

View File

@ -11,6 +11,18 @@ runner.run_steps{
assert(type(a) == "number", a)
end
if #client.get() == 1 then
local c = client.get()[1]
local geo = c:geometry()
-- Resize it to test shape change events.
c:geometry {
x = geo.x,
y = geo.y,
width = geo.width * 2,
height = geo.height * 2,
}
return true
end
end,
@ -27,8 +39,15 @@ runner.run_steps{
assert(not surface.load_silently(c.client_shape_clip, false))
assert(not surface.load_silently(c.shape_clip, false))
return true
end,
function()
client.get()[1]:kill()
return true
end
}
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80