2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for GetTextExtentExPoint
5 * PROGRAMMERS: Timo Kreuzer
14 #define TEST(x) ok(x, #x"\n")
15 #define RTEST(x) ok(x, #x"\n")
17 void Test_GetTextExtentExPoint()
25 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 1000, &nFit
, NULL
, &size
);
28 TEST(GetLastError() == 0);
29 printf("nFit = %d\n", nFit
);
31 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 1, &nFit
, NULL
, &size
);
34 TEST(GetLastError() == 0);
35 printf("nFit = %d\n", nFit
);
37 result
= GetTextExtentExPointA(GetDC(0), "test", 4, 0, &nFit
, NULL
, &size
);
40 TEST(GetLastError() == 0);
42 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -1, &nFit
, NULL
, &size
);
45 TEST(GetLastError() == 0);
47 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -2, &nFit
, NULL
, &size
);
49 TEST(GetLastError() == 87);
51 result
= GetTextExtentExPointW(GetDC(0), L
"test", 4, -10, &nFit
, NULL
, &size
);
54 result
= GetTextExtentExPointA(GetDC(0), "test", 4, -10, &nFit
, NULL
, &size
);
58 START_TEST(GetTextExtentExPoint
)
60 Test_GetTextExtentExPoint();