Skip to content

Commit b920d7d

Browse files
committed
More nice test cases
1 parent cc6bf38 commit b920d7d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

tests/phpunit/tests/fonts/font-library/wpFontUtils/normalizeCssFontFaceFontFamily.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)