@@ -39,11 +39,7 @@ fn imperative_grid_equivalent_to_from_str() {
3939
4040 // Helper: append a div with text content under parent. Returns the div
4141 // handle so we can assert against it.
42- fn append_div_with_text (
43- ctx : & mut TestCtx ,
44- parent : NodeHandle ,
45- text : & str ,
46- ) -> NodeHandle {
42+ fn append_div_with_text ( ctx : & mut TestCtx , parent : NodeHandle , text : & str ) -> NodeHandle {
4743 let div = ctx. create_node ( "div" ) ;
4844 let t = ctx. create_text ( text) ;
4945 ctx. append ( div, t) ;
@@ -58,7 +54,7 @@ fn imperative_grid_equivalent_to_from_str() {
5854
5955 // Row 2 (template row height 40px)
6056 let n4 = append_div_with_text ( & mut ctx, n0, "content1" ) ; // left=0
61- // content2 has an explicit inline style overriding width/height.
57+ // content2 has an explicit inline style overriding width/height.
6258 let n5 = ctx. create_node ( "div" ) ;
6359 ctx. set_style ( n5, "width: 23px; height: 23px" ) ;
6460 let t5 = ctx. create_text ( "content2" ) ;
@@ -84,7 +80,11 @@ fn imperative_grid_equivalent_to_from_str() {
8480 // Row 2 — 40px template row, except content2 which sets its own height.
8581 assert_eq ! ( ctx. height( n4) , 40.0 , "content1 height" ) ;
8682 assert_eq ! ( ctx. left( n4) , 0.0 , "content1 left" ) ;
87- assert_eq ! ( ctx. height( n5) , 23.0 , "content2 height (inline style override)" ) ;
83+ assert_eq ! (
84+ ctx. height( n5) ,
85+ 23.0 ,
86+ "content2 height (inline style override)"
87+ ) ;
8888 assert_eq ! ( ctx. left( n5) , 250.0 , "content2 left" ) ;
8989 assert_eq ! ( ctx. height( n6) , 40.0 , "content3 height" ) ;
9090 assert_eq ! ( ctx. left( n6) , 350.0 , "content3 left" ) ;
0 commit comments