@@ -306,18 +306,42 @@ fn attribute_selector() {
306306 let node_properties = query ( & ssg, "a" , "" , [ "" ] , [ ] ) ;
307307 assert_eq ! ( node_properties. height( ) , Length :: Undefined ) ;
308308 assert_eq ! ( node_properties. width( ) , Length :: Undefined ) ;
309- let node_properties = query ( & ssg, "a" , "" , [ "" ] , [ ( "title" . into ( ) , "" . into ( ) ) , ( "class" . into ( ) , "logo1 logo2" . into ( ) ) ] ) ;
309+ let node_properties = query (
310+ & ssg,
311+ "a" ,
312+ "" ,
313+ [ "" ] ,
314+ [
315+ ( "title" . into ( ) , "" . into ( ) ) ,
316+ ( "class" . into ( ) , "logo1 logo2" . into ( ) ) ,
317+ ] ,
318+ ) ;
310319 assert_eq ! ( node_properties. height( ) , Length :: Px ( 100. ) ) ;
311320 assert_eq ! ( node_properties. width( ) , Length :: Undefined ) ;
312- let node_properties = query ( & ssg, "a" , "" , [ "" ] , [ ( "title" . into ( ) , "" . into ( ) ) , ( "class" . into ( ) , "logo1 logo logo2" . into ( ) ) ] ) ;
321+ let node_properties = query (
322+ & ssg,
323+ "a" ,
324+ "" ,
325+ [ "" ] ,
326+ [
327+ ( "title" . into ( ) , "" . into ( ) ) ,
328+ ( "class" . into ( ) , "logo1 logo logo2" . into ( ) ) ,
329+ ] ,
330+ ) ;
313331 assert_eq ! ( node_properties. height( ) , Length :: Px ( 100. ) ) ;
314332 assert_eq ! ( node_properties. width( ) , Length :: Px ( 300. ) ) ;
315333 let node_properties = query ( & ssg, "a" , "" , [ "b" ] , [ ( "title" . into ( ) , "" . into ( ) ) ] ) ;
316334 assert_eq ! ( node_properties. height( ) , Length :: Px ( 100. ) ) ;
317335 let node_properties = query ( & ssg, "" , "" , [ ] , [ ( "title" . into ( ) , "" . into ( ) ) ] ) ;
318336 assert_eq ! ( node_properties. height( ) , Length :: Undefined ) ;
319337
320- let node_properties = query ( & ssg, "a" , "" , [ ] , [ ( "href" . into ( ) , "https://example.org" . into ( ) ) ] ) ;
338+ let node_properties = query (
339+ & ssg,
340+ "a" ,
341+ "" ,
342+ [ ] ,
343+ [ ( "href" . into ( ) , "https://example.org" . into ( ) ) ] ,
344+ ) ;
321345 assert_eq ! ( node_properties. height( ) , Length :: Undefined ) ;
322346 assert_eq ! ( node_properties. width( ) , Length :: Undefined ) ;
323347 assert_eq ! ( node_properties. min_height( ) , Length :: Px ( 100. ) ) ;
@@ -329,9 +353,27 @@ fn attribute_selector() {
329353 assert_eq ! ( node_properties. height( ) , Length :: Px ( 13. ) ) ;
330354 let node_properties = query ( & ssg, "button" , "a" , [ ] , [ ( "type" . into ( ) , "warn" . into ( ) ) ] ) ;
331355 assert_eq ! ( node_properties. height( ) , Length :: Px ( 12. ) ) ;
332- let node_properties = query ( & ssg, "button" , "" , [ ] , [ ( "type" . into ( ) , "primary" . into ( ) ) , ( "size" . into ( ) , "mini" . into ( ) ) ] ) ;
356+ let node_properties = query (
357+ & ssg,
358+ "button" ,
359+ "" ,
360+ [ ] ,
361+ [
362+ ( "type" . into ( ) , "primary" . into ( ) ) ,
363+ ( "size" . into ( ) , "mini" . into ( ) ) ,
364+ ] ,
365+ ) ;
333366 assert_eq ! ( node_properties. height( ) , Length :: Px ( 11. ) ) ;
334- let node_properties = query ( & ssg, "button" , "" , [ ] , [ ( "type" . into ( ) , "warm" . into ( ) ) , ( "size" . into ( ) , "mini" . into ( ) ) ] ) ;
367+ let node_properties = query (
368+ & ssg,
369+ "button" ,
370+ "" ,
371+ [ ] ,
372+ [
373+ ( "type" . into ( ) , "warm" . into ( ) ) ,
374+ ( "size" . into ( ) , "mini" . into ( ) ) ,
375+ ] ,
376+ ) ;
335377 assert_eq ! ( node_properties. height( ) , Length :: Px ( 10. ) ) ;
336378}
337379
0 commit comments