diff --git a/frontends/rioterm/src/context/grid.rs b/frontends/rioterm/src/context/grid.rs index 329c35b516..c77f865f39 100644 --- a/frontends/rioterm/src/context/grid.rs +++ b/frontends/rioterm/src/context/grid.rs @@ -1000,25 +1000,26 @@ pub mod test { rich_text_id, context_dimension, ); - // let context_width = context.dimension.width; - // let context_height = context.dimension.height; - // let context_margin = context.dimension.margin; - // let grid = ContextGrid::::new(context, margin, [0., 0., 0., 0.]); - // // The first context should fill completely w/h grid - // assert_eq!(grid.width, context_width); - // assert_eq!(grid.height, context_height); - - // // Context margin should empty - // assert_eq!(Delta::::default(), context_margin); - // assert_eq!(grid.margin, margin); - - // assert_eq!( - // grid.objects(), - // vec![Object::RichText(RichText { - // id: rich_text_id, - // position: [10., 20.], - // })] - // ); + panic!("does even pass?"); + let context_width = context.dimension.width; + let context_height = context.dimension.height; + let context_margin = context.dimension.margin; + let grid = ContextGrid::::new(context, margin, [0., 0., 0., 0.]); + // The first context should fill completely w/h grid + assert_eq!(grid.width, context_width); + assert_eq!(grid.height, context_height); + + // Context margin should empty + assert_eq!(Delta::::default(), context_margin); + assert_eq!(grid.margin, margin); + + assert_eq!( + grid.objects(), + vec![Object::RichText(RichText { + id: rich_text_id, + position: [10., 20.], + })] + ); } // #[test] diff --git a/frontends/rioterm/src/context/mod.rs b/frontends/rioterm/src/context/mod.rs index 005b4c279a..e30595dfb0 100644 --- a/frontends/rioterm/src/context/mod.rs +++ b/frontends/rioterm/src/context/mod.rs @@ -199,7 +199,6 @@ pub fn create_mock_context( let (sender, _receiver) = corcovado::channel::channel(); let messenger = Messenger::new(sender); let renderable_content = RenderableContent::new(Cursor::default()); - panic!("aaaa"); Context { route_id,