it: test output transforms
This commit is contained in:
parent
c6b34550d8
commit
221a398abe
6 changed files with 49 additions and 1 deletions
27
src/it/tests/t0026_output_transform.rs
Normal file
27
src/it/tests/t0026_output_transform.rs
Normal 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(())
|
||||
}
|
||||
BIN
src/it/tests/t0026_output_transform/screenshot_1.qoi
Normal file
BIN
src/it/tests/t0026_output_transform/screenshot_1.qoi
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue