it: test surface input region
This commit is contained in:
parent
221a398abe
commit
9703ba8794
6 changed files with 68 additions and 2 deletions
|
|
@ -2,8 +2,12 @@ use {
|
|||
crate::{
|
||||
ifs::wl_surface::WlSurface,
|
||||
it::{
|
||||
test_error::TestError, test_object::TestObject, test_transport::TestTransport,
|
||||
test_utils::test_expected_event::TEEH, testrun::ParseFull,
|
||||
test_error::{TestError, TestResult},
|
||||
test_ifs::test_region::TestRegion,
|
||||
test_object::TestObject,
|
||||
test_transport::TestTransport,
|
||||
test_utils::test_expected_event::TEEH,
|
||||
testrun::ParseFull,
|
||||
},
|
||||
utils::buffd::MsgParser,
|
||||
wire::{wl_surface::*, WlBufferId, WlSurfaceId},
|
||||
|
|
@ -47,6 +51,14 @@ impl TestSurface {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn set_input_region(&self, region: &TestRegion) -> TestResult {
|
||||
self.tran.send(SetInputRegion {
|
||||
self_id: self.id,
|
||||
region: region.id,
|
||||
})?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn commit(&self) -> Result<(), TestError> {
|
||||
self.tran.send(Commit { self_id: self.id })?;
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue