File tree Expand file tree Collapse file tree
tests/phpunit/tests/fonts/font-library/wpFontUtils Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,12 @@ public static function data_provider(): Generator {
3333 yield 'Already normalized ' => array ( '"Font" ' , '"Font" ' );
3434 yield 'Unquoted ' => array ( 'Font ' , '"Font" ' );
3535 yield 'Multiple idents ' => array ( 'Font Name ' , '"Font Name" ' );
36- yield 'Unitless number? ' => array ( 'Libre Barcode 128 Text ' , null );
37- yield 'Unitful number? ' => array ( '10px Size ' , null );
36+ yield 'Number ' => array ( 'Libre Barcode 128 Text ' , null );
37+ yield 'PX unit number ' => array ( '10px rest ' , null );
38+ yield '% unit number ' => array ( '10px rest ' , null );
39+ yield 'Weird unit number ' => array ( '20xYz rest ' , null );
40+ yield 'Negative number ' => array ( '-30deg rest ' , null );
41+ yield 'Positive number ' => array ( '+40rad rest ' , null );
42+ yield 'Multiple ident spaces normalized ' => array ( "A \nB \rC \r\nD \tE \fF " , '"A B C D E F" ' );
3843 }
3944}
You can’t perform that action at this time.
0 commit comments