Commit 20b5cdb1 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent e7094551
......@@ -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++;
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment