Akihiro Sagawa : gdi32/tests: Add more tests for GetGlyphOutlineA.

Alexandre Julliard julliard at winehq.org
Wed May 4 13:47:42 CDT 2011


Module: wine
Branch: master
Commit: d8db1b301df65707abc0cc1319825a98b1c089c0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d8db1b301df65707abc0cc1319825a98b1c089c0

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Wed May  4 19:58:13 2011 +0900

gdi32/tests: Add more tests for GetGlyphOutlineA.

---

 dlls/gdi32/tests/font.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index 2d4efff..900177e 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -3241,11 +3241,24 @@ static void test_GetGlyphOutline(void)
 
         old_hfont = SelectObject(hdc, hfont);
 
+        /* expected to ignore superfluous bytes (sigle-byte character) */
         ret = GetGlyphOutlineA(hdc, 0x8041, GGO_BITMAP, &gm, 0, NULL, &mat);
         ret2 = GetGlyphOutlineA(hdc, 0x41, GGO_BITMAP, &gm2, 0, NULL, &mat);
         ok(ret == ret2 && memcmp(&gm, &gm2, sizeof gm) == 0, "%d %d\n", ret, ret2);
 
+        ret = GetGlyphOutlineA(hdc, 0xcc8041, GGO_BITMAP, &gm, 0, NULL, &mat);
+        todo_wine
+        ok(ret == ret2 && memcmp(&gm, &gm2, sizeof gm) == 0,
+           "Expected to ignore superfluous bytes, got %d %d\n", ret, ret2);
+
+        /* expected to ignore superfluous bytes (double-byte character) */
         ret = GetGlyphOutlineA(hdc, c[i].a, GGO_BITMAP, &gm, 0, NULL, &mat);
+        ret2 = GetGlyphOutlineA(hdc, c[i].a | 0xdead0000, GGO_BITMAP, &gm2, 0, NULL, &mat);
+        todo_wine
+        ok(ret == ret2 && memcmp(&gm, &gm2, sizeof gm) == 0,
+           "Expected to ignore superfluous bytes, got %d %d\n", ret, ret2);
+
+        /* expected to match wide-char version results */
         ret2 = GetGlyphOutlineW(hdc, c[i].w, GGO_BITMAP, &gm2, 0, NULL, &mat);
         ok(ret == ret2 && memcmp(&gm, &gm2, sizeof gm) == 0, "%d %d\n", ret, ret2);
 




More information about the wine-cvs mailing list