Cargo format
This commit is contained in:
parent
03a0e1754d
commit
5150791e76
3 changed files with 32 additions and 21 deletions
|
|
@ -1335,12 +1335,15 @@ fn reposition_popup() {
|
|||
Some(testwl::Vec2 { x: 80, y: 100 })
|
||||
);
|
||||
let win_data = &f.connection().windows[&popup];
|
||||
assert_eq!(win_data.dims, WindowDims {
|
||||
assert_eq!(
|
||||
win_data.dims,
|
||||
WindowDims {
|
||||
x: 40,
|
||||
y: 60,
|
||||
width: 80,
|
||||
height: 100
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
@ -1363,12 +1366,15 @@ fn ignore_toplevel_reconfigure() {
|
|||
|
||||
f.run();
|
||||
let win_data = &f.connection().windows[&toplevel];
|
||||
assert_eq!(win_data.dims, WindowDims {
|
||||
assert_eq!(
|
||||
win_data.dims,
|
||||
WindowDims {
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 100,
|
||||
height: 100
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/// See Pointer::handle_event for an explanation.
|
||||
|
|
|
|||
|
|
@ -669,8 +669,14 @@ fn copy_from_x11() {
|
|||
assert_ne!(window, owner.owner());
|
||||
|
||||
let mimes = f.testwl.data_source_mimes();
|
||||
assert!(mimes.contains(&"text/plain".into()), "text/plain not in mimes: {mimes:?}"); // mime1
|
||||
assert!(mimes.contains(&"blah/blah".into()), "blah/blah not in mimes: {mimes:?}"); // mime2
|
||||
assert!(
|
||||
mimes.contains(&"text/plain".into()),
|
||||
"text/plain not in mimes: {mimes:?}"
|
||||
); // mime1
|
||||
assert!(
|
||||
mimes.contains(&"blah/blah".into()),
|
||||
"blah/blah not in mimes: {mimes:?}"
|
||||
); // mime2
|
||||
|
||||
let data = f.testwl.paste_data();
|
||||
f.testwl.dispatch();
|
||||
|
|
|
|||
|
|
@ -232,7 +232,6 @@ impl State {
|
|||
self.configure_serial += 1;
|
||||
}
|
||||
|
||||
|
||||
#[track_caller]
|
||||
fn get_toplevel(&mut self, surface_id: SurfaceId) -> &mut Toplevel {
|
||||
let surface = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue