1
0
Fork 0
forked from wry/wry

it: test output transforms

This commit is contained in:
Julian Orth 2024-04-02 17:01:36 +02:00
parent c6b34550d8
commit 221a398abe
6 changed files with 49 additions and 1 deletions

View file

@ -0,0 +1,27 @@
use {
crate::it::{test_error::TestResult, testrun::TestRun},
jay_config::video::Transform,
std::rc::Rc,
};
testcase!();
async fn test(run: Rc<TestRun>) -> TestResult {
let ds = run.create_default_setup().await?;
run.cfg
.set_output_transform(&ds.output, Transform::FlipRotate90)?;
let client = run.create_client().await?;
let win = client.create_window().await?;
let transform = win.surface.preferred_buffer_transform.expect()?;
win.map2().await?;
tassert_eq!(transform.next()?, 5);
client.compare_screenshot("1", false).await?;
Ok(())
}