Huw Davies : gdi32/tests: From Vista onwards TabbedTextOut ignores justification, so remove that bit of the test.

Alexandre Julliard julliard at winehq.org
Wed Feb 18 10:15:40 CST 2009


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

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Feb 18 12:17:55 2009 +0000

gdi32/tests: From Vista onwards TabbedTextOut ignores justification, so remove that bit of the test.

---

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

diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c
index bc9d64c..b10aebe 100644
--- a/dlls/gdi32/tests/font.c
+++ b/dlls/gdi32/tests/font.c
@@ -1292,7 +1292,6 @@ static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
 {
     INT         x, y,
                 breakCount,
-                outputWidth = 0,    /* to test TabbedTextOut() */
                 justifiedWidth = 0, /* to test GetTextExtentExPointW() */
                 areaWidth = clientArea->right - clientArea->left,
                 nErrors = 0, e;
@@ -1304,7 +1303,6 @@ static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
     {
         char extent[100];
         int  GetTextExtentExPointWWidth;
-        int  TabbedTextOutWidth;
     } error[10];
 
     GetTextMetricsA(hdc, &tm);
@@ -1350,15 +1348,11 @@ static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
 
         x = clientArea->left;
 
-        outputWidth = LOWORD(TabbedTextOut(
-                             hdc, x, y, pFirstChar, pLastChar - pFirstChar,
-                             0, NULL, 0));
         /* catch errors and report them */
-        if (!lastExtent && ((outputWidth != areaWidth) || (justifiedWidth != areaWidth)))
+        if (!lastExtent && (justifiedWidth != areaWidth))
         {
             memset(error[nErrors].extent, 0, 100);
             memcpy(error[nErrors].extent, pFirstChar, pLastChar - pFirstChar);
-            error[nErrors].TabbedTextOutWidth = outputWidth;
             error[nErrors].GetTextExtentExPointWWidth = justifiedWidth;
             nErrors++;
         }
@@ -1369,9 +1363,6 @@ static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
 
     for (e = 0; e < nErrors; e++)
     {
-        ok(near_match(error[e].TabbedTextOutWidth, areaWidth),
-            "The output text (\"%s\") width should be %d, not %d.\n",
-            error[e].extent, areaWidth, error[e].TabbedTextOutWidth);
         /* The width returned by GetTextExtentPoint32() is exactly the same
            returned by GetTextExtentExPointW() - see dlls/gdi32/font.c */
         ok(error[e].GetTextExtentExPointWWidth == areaWidth,




More information about the wine-cvs mailing list