Skip to content

Commit 664863f

Browse files
committed
does even pass?
1 parent 87d4d9d commit 664863f

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

frontends/rioterm/src/context/grid.rs

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,25 +1000,26 @@ pub mod test {
10001000
rich_text_id,
10011001
context_dimension,
10021002
);
1003-
// let context_width = context.dimension.width;
1004-
// let context_height = context.dimension.height;
1005-
// let context_margin = context.dimension.margin;
1006-
// let grid = ContextGrid::<VoidListener>::new(context, margin, [0., 0., 0., 0.]);
1007-
// // The first context should fill completely w/h grid
1008-
// assert_eq!(grid.width, context_width);
1009-
// assert_eq!(grid.height, context_height);
1010-
1011-
// // Context margin should empty
1012-
// assert_eq!(Delta::<f32>::default(), context_margin);
1013-
// assert_eq!(grid.margin, margin);
1014-
1015-
// assert_eq!(
1016-
// grid.objects(),
1017-
// vec![Object::RichText(RichText {
1018-
// id: rich_text_id,
1019-
// position: [10., 20.],
1020-
// })]
1021-
// );
1003+
panic!("does even pass?");
1004+
let context_width = context.dimension.width;
1005+
let context_height = context.dimension.height;
1006+
let context_margin = context.dimension.margin;
1007+
let grid = ContextGrid::<VoidListener>::new(context, margin, [0., 0., 0., 0.]);
1008+
// The first context should fill completely w/h grid
1009+
assert_eq!(grid.width, context_width);
1010+
assert_eq!(grid.height, context_height);
1011+
1012+
// Context margin should empty
1013+
assert_eq!(Delta::<f32>::default(), context_margin);
1014+
assert_eq!(grid.margin, margin);
1015+
1016+
assert_eq!(
1017+
grid.objects(),
1018+
vec![Object::RichText(RichText {
1019+
id: rich_text_id,
1020+
position: [10., 20.],
1021+
})]
1022+
);
10221023
}
10231024

10241025
// #[test]

frontends/rioterm/src/context/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ pub fn create_mock_context<T: rio_backend::event::EventListener>(
199199
let (sender, _receiver) = corcovado::channel::channel();
200200
let messenger = Messenger::new(sender);
201201
let renderable_content = RenderableContent::new(Cursor::default());
202-
panic!("aaaa");
203202

204203
Context {
205204
route_id,

0 commit comments

Comments
 (0)