1
0
Fork 0
forked from wry/wry

it: test foreign-toplevel-list

This commit is contained in:
Julian Orth 2024-04-02 15:57:41 +02:00
parent 6fe6b1b491
commit a39031d4f9
12 changed files with 276 additions and 18 deletions

View file

@ -2,8 +2,11 @@ use {
crate::{
client::ClientId,
it::{
test_error::TestError, test_ifs::test_screenshot::TestJayScreenshot,
test_object::TestObject, test_transport::TestTransport, testrun::ParseFull,
test_error::{TestError, TestResult},
test_ifs::test_screenshot::TestJayScreenshot,
test_object::TestObject,
test_transport::TestTransport,
testrun::ParseFull,
},
utils::{buffd::MsgParser, cell_ext::CellExt},
wire::{
@ -33,6 +36,11 @@ impl TestJayCompositor {
}
}
pub fn enable_symmetric_delete(&self) -> TestResult {
self.tran.send(EnableSymmetricDelete { self_id: self.id })?;
Ok(())
}
pub async fn take_screenshot(&self, include_cursor: bool) -> Result<Dmabuf, TestError> {
let js = Rc::new(TestJayScreenshot {
id: self.tran.id(),