1
0
Fork 0
forked from wry/wry
wry/src/it/tests/t0001_shm_formats.rs
2022-05-01 17:23:55 +02:00

18 lines
484 B
Rust

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(())
}