@@ -1000,25 +1000,26 @@ pub mod test {
1000
1000
rich_text_id,
1001
1001
context_dimension,
1002
1002
) ;
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
+ ) ;
1022
1023
}
1023
1024
1024
1025
// #[test]
0 commit comments