dwrite/tests: Test that soft hyphen is not marked as a whitespace.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-02-02 01:41:13 +03:00 committed by Alexandre Julliard
parent e7094551fe
commit 20b5cdb1d4
2 changed files with 5 additions and 0 deletions

View file

@ -1028,6 +1028,9 @@ static void compare_breakpoints(const struct linebreaks_test *test, DWRITE_LINE_
conditions[test->bp[i].breakConditionAfter],
test->bp[i].isWhitespace ? "WS" : "0",
test->bp[i].isSoftHyphen ? "SHY" : "0");
if (g_actual_bp[i].isSoftHyphen)
ok(!g_actual_bp[i].isWhitespace, "%s: soft hyphen marked as a whitespace\n",
wine_dbgstr_wn(&test->text[i], 1));
text++;
i++;
}

View file

@ -2025,6 +2025,8 @@ todo_wine
for (i = 0; i < count; i++) {
ok(metrics[i].length == 1, "%d: got %d\n", i, metrics[i].length);
ok(metrics[i].isSoftHyphen == (i == count - 2), "%d: got %d\n", i, metrics[i].isSoftHyphen);
if (metrics[i].isSoftHyphen)
ok(!metrics[i].isWhitespace, "%u: got %d\n", i, metrics[i].isWhitespace);
if (metrics[i].isNewline) {
if (i == 17 || i == 19)
todo_wine ok(metrics[i].width == 0.0f, "%u: got width %f\n", i, metrics[i].width);