https://git.reactos.org/?p=reactos.git;a=commitdiff;h=68fcf906d9237dac842a4297722edfdcb39da0de

commit 68fcf906d9237dac842a4297722edfdcb39da0de
Author:     Katayama Hirofumi MZ <katayama.hirofumi...@gmail.com>
AuthorDate: Sun May 19 19:11:12 2019 +0900
Commit:     GitHub <nore...@github.com>
CommitDate: Sun May 19 19:11:12 2019 +0900

    [GDI32_APITEST] Strengthen TextTransform more (#1568)
    
    Appendant to #1567. Add more tests for gdi32_apitest!TextTransform. 
CORE-15554
---
 modules/rostests/apitests/gdi32/TextTransform.c | 36 +++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/modules/rostests/apitests/gdi32/TextTransform.c 
b/modules/rostests/apitests/gdi32/TextTransform.c
index ca3eea8f7e6..47657e88a29 100644
--- a/modules/rostests/apitests/gdi32/TextTransform.c
+++ b/modules/rostests/apitests/gdi32/TextTransform.c
@@ -186,6 +186,18 @@ static const TEST_ENTRY s_entries[] =
         3, {POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, -1), POS(-1, -1)}},
     {__LINE__, GM_ADVANCED, {0, 0}, TA_LEFT | TA_TOP, {1, 0, 0, 2, 0, 
HEIGHT/4}, TRUE, L"305.bmp",
         4, {POS(-1, -1), POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, -1), 
POS(-3, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_LEFT | TA_TOP, {2, 0, 0, 1, 0, 
0}, TRUE, L"306.bmp",
+        3, {POS(-1, -1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, 1), POS(-1, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_LEFT | TA_TOP, {1, 0, 0, 2, 0, 
-HEIGHT/2}, TRUE, L"307.bmp",
+        4, {POS(-1, -1), POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, 3), 
POS(-3, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_LEFT | TA_TOP, {2, 0, 0, 1, 
WIDTH/4, 0}, TRUE, L"308.bmp",
+        2, {POS(-1, -1), POS(1, -1)}, 2, {POS(-1, 1), POS(1, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_LEFT | TA_TOP, {1, 0, 0, 2, 
WIDTH/4, -HEIGHT/2}, TRUE, L"309.bmp",
+        3, {POS(-1, -1), POS(1, -1), POS(1, 1)}, 2, {POS(-1, 1), POS(-1, 3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_LEFT | TA_TOP, {2, 0, 0, 1, 0, 
HEIGHT/4}, TRUE, L"310.bmp",
+        4, {POS(-1, -1), POS(1, -1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, 3), 
POS(-1, 3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_LEFT | TA_TOP, {1, 0, 0, 2, 0, 
-HEIGHT/2}, TRUE, L"311.bmp",
+        4, {POS(-1, -1), POS(1, -1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, 3), 
POS(-3, 1)}},
 
     // GM_ADVANCED TA_CENTER TA_TOP
     {__LINE__, GM_ADVANCED, {XCENTER, 0}, TA_CENTER | TA_TOP, {2, 0, 0, 1, 
-WIDTH/4, 0}, TRUE, L"400.bmp",
@@ -200,6 +212,18 @@ static const TEST_ENTRY s_entries[] =
         2, {POS(-1, 1), POS(1, 1)}, 2, {POS(1, -1), POS(3, -1)}},
     {__LINE__, GM_ADVANCED, {XCENTER, 0}, TA_CENTER | TA_TOP, {1, 0, 0, 2, 
WIDTH/8, HEIGHT/4}, TRUE, L"405.bmp",
         2, {POS(-1, -1), POS(-1, 1)}, 2, {POS(1, -1), POS(1, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_CENTER | TA_TOP, {1, 0, 0, 2, 
WIDTH/8, -HEIGHT/2}, TRUE, L"406.bmp",
+        4, {POS(-1, -1), POS(1, -1), POS(-1, 1), POS(1, 1)}, 2, {POS(-3, 1), 
POS(-3, 3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_CENTER | TA_TOP, {2, 0, 0, 1, 
WIDTH/4, -HEIGHT/2}, TRUE, L"407.bmp",
+        4, {POS(-1, -1), POS(1, -1), POS(-1, 1), POS(1, 1)}, 2, {POS(-3, -3), 
POS(-1, -3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_CENTER | TA_TOP, {2, 0, 0, 2, 
WIDTH/4, -HEIGHT/2}, TRUE, L"408.bmp",
+        3, {POS(-1, -1), POS(1, -1), POS(1, 1)}, 4, {POS(-3, 3), POS(-3, 1), 
POS(-3, 1), POS(-1, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_CENTER | TA_TOP, {1, 0, 0, 2, 
WIDTH/8, -HEIGHT/2}, TRUE, L"409.bmp",
+        4, {POS(-1, -1), POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, 3), 
POS(-3, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_CENTER | TA_TOP, {2, 0, 0, 1, 
WIDTH/4, -HEIGHT/2}, TRUE, L"410.bmp",
+        4, {POS(-1, -1), POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, -3), 
POS(-1, -3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_CENTER | TA_TOP, {1, 0, 0, 2, 
WIDTH/8, -HEIGHT/2}, TRUE, L"411.bmp",
+        4, {POS(-1, -1), POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, 1), 
POS(-3, 3)}},
 
     // GM_ADVANCED TA_RIGHT TA_TOP
     {__LINE__, GM_ADVANCED, {XCENTER, 0}, TA_RIGHT | TA_TOP, {2, 0, 0, 1, 
-WIDTH/4, 0}, TRUE, L"500.bmp",
@@ -214,6 +238,18 @@ static const TEST_ENTRY s_entries[] =
         2, {POS(-1, 1), POS(1, 1)}, 2, {POS(-1, -1), POS(1, -1)}},
     {__LINE__, GM_ADVANCED, {XCENTER, 0}, TA_RIGHT | TA_TOP, {1, 0, 0, 2, 
WIDTH/4, HEIGHT/4}, TRUE, L"505.bmp",
         2, {POS(-1, -1), POS(-1, 1)}, 2, {POS(1, -1), POS(1, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_RIGHT | TA_TOP, {2, 0, 0, 1, 
WIDTH/2, -HEIGHT/2}, TRUE, L"506.bmp",
+        4, {POS(-1, -1), POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, -3), 
POS(-1, -3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_RIGHT | TA_TOP, {1, 0, 0, 2, 
WIDTH/2, -HEIGHT/2}, TRUE, L"507.bmp",
+        3, {POS(-1, -1), POS(1, -1), POS(1, 1)}, 2, {POS(-1, 3), POS(-1, 1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_RIGHT | TA_TOP, {2, 0, 0, 2, 
WIDTH, -HEIGHT/2}, TRUE, L"508.bmp",
+        3, {POS(-1, -1), POS(-1, 1), POS(1, -1)}, 4, {POS(1, 1), POS(3, 1), 
POS(1, 3), POS(3, 3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_RIGHT | TA_TOP, {1, 0, 0, 2, 
WIDTH/2, -HEIGHT/2}, TRUE, L"509.bmp",
+        3, {POS(-1, -1), POS(1, -1), POS(1, 1)}, 2, {POS(-1, 1), POS(-1, 3)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_RIGHT | TA_TOP, {2, 0, 0, 1, 
WIDTH/2, -HEIGHT/4}, TRUE, L"510.bmp",
+        3, {POS(-1, 1), POS(1, -1), POS(1, 1)}, 2, {POS(-3, -1), POS(-1, -1)}},
+    {__LINE__, GM_ADVANCED, {0, YCENTER}, TA_RIGHT | TA_TOP, {1, 0, 0, 2, 
WIDTH/2, -HEIGHT/2}, TRUE, L"511.bmp",
+        3, {POS(-1, -1), POS(1, -1), POS(1, 1)}, 2, {POS(-1, 1), POS(-1, 3)}},
 };
 static const INT s_entry_count = (INT)(sizeof(s_entries) / 
sizeof(s_entries[0]));
 

Reply via email to