autocommit 2022-05-01 17:23:55 CEST
This commit is contained in:
parent
4373ed05bf
commit
e1d5bf0e5d
39 changed files with 1772 additions and 57 deletions
18
src/it/tests/t0001_shm_formats.rs
Normal file
18
src/it/tests/t0001_shm_formats.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
use {
|
||||
crate::{
|
||||
format::{ARGB8888, XRGB8888},
|
||||
it::{test_error::TestError, testrun::TestRun},
|
||||
},
|
||||
std::rc::Rc,
|
||||
};
|
||||
|
||||
testcase!();
|
||||
|
||||
/// Test that wl_shm supports the required formats
|
||||
async fn test(run: Rc<TestRun>) -> Result<(), TestError> {
|
||||
let client = run.create_client().await?;
|
||||
let formats = client.shm.formats().await;
|
||||
tassert!(formats.contains(&XRGB8888.wl_id.unwrap()));
|
||||
tassert!(formats.contains(&ARGB8888.wl_id.unwrap()));
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue