dwrite/tests: Add a linebreaking test regarding LB30 rule changes in Unicode 13.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2021-09-15 10:58:56 +03:00 committed by Alexandre Julliard
parent 984f608c28
commit 8ca898ed36

View file

@ -1083,7 +1083,8 @@ struct linebreaks_test {
DWRITE_LINE_BREAKPOINT bp[BREAKPOINT_COUNT];
};
static struct linebreaks_test linebreaks_tests[] = {
static const struct linebreaks_test linebreaks_tests[] =
{
{ {'A','-','B',' ','C',0x58a,'D',0x2010,'E',0x2012,'F',0x2013,'\t',0xc,0xb,0x2028,0x2029,0x200b,0},
{
{ DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, 0, 0 },
@ -1124,6 +1125,14 @@ static struct linebreaks_test linebreaks_tests[] = {
{ DWRITE_BREAK_CONDITION_CAN_BREAK, DWRITE_BREAK_CONDITION_CAN_BREAK, 0, 0 },
}
},
/* LB30 changes in Unicode 13 regarding East Asian parentheses */
{ {0x5f35,'G',0x300c,0},
{
{ DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, DWRITE_BREAK_CONDITION_CAN_BREAK },
{ DWRITE_BREAK_CONDITION_CAN_BREAK, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK },
{ DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, DWRITE_BREAK_CONDITION_CAN_BREAK },
}
},
{ { 0 } }
};