use crate::format::ARGB8888;
use crate::format::XRGB8888;
use crate::it::test_error::TestError;
use crate::it::testrun::TestRun;
use std::rc::Rc;
testcase!();
/// Test that wl_shm supports the required formats
async fn test(run: Rc<TestRun>) -> Result<(), TestError> {
run.backend.install_render_context(false)?;
let client = run.create_client()?;
let shm = client.new_shm();
let formats = shm.formats().await;
tassert!(formats.contains(&XRGB8888.wl_id.unwrap()));
tassert!(formats.contains(&ARGB8888.wl_id.unwrap()));
Ok(())
}