tests/wl_surface: Test wl_buffer.release is called
When the buffer is removed from a surface or replaced.
I added to WssyBuffer
which I assume was created for this purpose.
I also added create_buffer_with_data
to wrap pool.send_constructor
with a supplied ObjectData
, I'm not completely happy with this design. An alternative would be returning a (WssyBuffer, WlBuffer)
pair or directly calling send_constructor
for tests where wl_buffer.release
is relevant.
Clippy fails as shm_pool_create_buffer_with_data
takes 1 too many argument, dimentions: (i32, i32)
could fix this.
Currently both tests pass for anvil. Mir on the other hand doesn't wl_buffer.release
in the buffer_release_on_detach_buffer
case.