Skip to content

Commit 37bd41e

Browse files
umherirrenderjenkins-bot
authored andcommitted
tests: Add test case for ratio and counterStyle
Complete coverage for MatcherFactory Change-Id: I8478055d3254dd14d764fc82600adf80215a6054
1 parent 03e73e6 commit 37bd41e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/Grammar/MatcherFactoryTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ public static function provideMatchers() {
193193
[ 'number', 'calc(pi)' ],
194194
[ 'number', 'pow(3px, 2)' ],
195195

196+
[ 'ratio', '5' ],
197+
[ 'ratio', '5 / 6' ],
198+
[ 'ratio', '5 / 0' ],
199+
196200
[ 'percentage', '12', false ],
197201
[ 'percentage', '12%' ],
198202
[ 'percentage', '+12%' ],
@@ -716,6 +720,9 @@ public static function provideMatchers() {
716720
[ 'cssSingleEasingFunction', 'steps( 77, jump-both )' ],
717721
[ 'cssSingleEasingFunction', 'cubic-bezier( 1, 3.4, +5, -1e2 )' ],
718722

723+
[ 'counterStyle', 'decimal' ],
724+
[ 'counterStyle', 'symbols( numeric "A" "B" )' ],
725+
719726
[ 'cssSelector', '', null ],
720727

721728
[ 'cssSelectorList', 'h1, h2, h3' ],

0 commit comments

Comments
 (0)