Skip to content

Commit 0fceca8

Browse files
committed
Add test
1 parent d37a4bf commit 0fceca8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

features/makepot.feature

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3696,6 +3696,11 @@ Feature: Generate a POT file of a WordPress project
36963696
"fontSizes": [
36973697
{ "name": "Small", "slug": "small", "size": "13px" }
36983698
]
3699+
},
3700+
"border": {
3701+
"radiusSizes": [
3702+
{ "slug": "soft", "size": "6px", "name": "Soft corners" }
3703+
]
36993704
}
37003705
}
37013706
}
@@ -3732,6 +3737,11 @@ Feature: Generate a POT file of a WordPress project
37323737
msgctxt "Font size name"
37333738
msgid "Small"
37343739
"""
3740+
And the foo-theme/foo-theme.pot file should contain:
3741+
"""
3742+
msgctxt "Border radius size name"
3743+
msgid "Soft corners"
3744+
"""
37353745
And the foo-theme/foo-theme.pot file should contain:
37363746
"""
37373747
msgctxt "Style variation name"
@@ -3756,6 +3766,11 @@ Feature: Generate a POT file of a WordPress project
37563766
"palette": [
37573767
{ "slug": "black", "color": "#000000", "name": "Black" }
37583768
]
3769+
},
3770+
"border": {
3771+
"radiusSizes": [
3772+
{ "slug": "soft", "size": "6px", "name": "Soft corners for paragraph" }
3773+
]
37593774
}
37603775
}
37613776
}
@@ -3774,6 +3789,11 @@ Feature: Generate a POT file of a WordPress project
37743789
msgctxt "Color name"
37753790
msgid "Black"
37763791
"""
3792+
And the foo-theme/foo-theme.pot file should contain:
3793+
"""
3794+
msgctxt "Border radius size name"
3795+
msgid "Soft corners for paragraph"
3796+
"""
37773797

37783798
Scenario: Extract strings from style variations
37793799
Given an empty foo-theme directory

0 commit comments

Comments
 (0)