18 lines
484 B
Rust
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(())
|
|
}
|