Go to the source code of this file.
◆ START_TEST()
◆ Test_SetWorldTransform()
void Test_SetWorldTransform |
( |
| ) |
|
Definition at line 11 of file SetWorldTransform.c.
12{
16
17
18
19
24
25
33 ok(
result == 1,
"SetWorldTransform should succeed\n");
34
35
38 ok(
result == 0,
"SetWorldTransform should fail\n");
39
40
44 ok(
result == 0,
"SetWorldTransform should fail\n");
45
46
52 ok(
result == 0,
"SetWorldTransform should fail\n");
53
54
57 ok(
result == 1,
"SetWorldTransform should succeed\n");
58
59
64 ok(xform.
eM12 != (
FLOAT)1.0,
"xform.eM12 shouldn't be 1.0\n");
65 ok(xform.
eM21 != (
FLOAT)1.0,
"xform.eM21 shouldn't be 1.0\n");
66#if 0
67 ok(xform.
eM12 * xform.
eM21 != (
FLOAT)1.0,
"xform.eM12 * xform.eM21 shouldn't be 1.0\n");
68#endif
70 ok(
result == 0,
"SetWorldTransform should fail\n");
71
72
74 ok(
result == 1,
"GetWorldTransform should succeed\n");
75 ok(xform.
eM11 == 2,
"xform.eM11 should be 2\n");
76 ok(xform.
eM12 == (
FLOAT)3.0001,
"xform.eM12 should be 3.0001\n");
77 ok(xform.
eM21 == 4,
"xform.eM21 should be 4\n");
78 ok(xform.
eM22 == 6,
"xform.eM22 should be 6\n");
79
80
81 xform.
eM11 = 1.17549435e-38f;
84 xform.
eM22 = 1.17549435e-38f;
85 ok(xform.
eM11 != (
FLOAT)0.0,
"xform.eM11 shouldn't be 0.0\n");
86 ok(xform.
eM22 != (
FLOAT)0.0,
"xform.eM22 shouldn't be 0.0\n");
87#if 0
88 ok(xform.
eM11 * xform.
eM22 != (
FLOAT)0.0,
"xform.eM12 * xform.eM21 shouldn't be 0.0\n");
89#endif
91 ok(
result == 1,
"SetWorldTransform should succeed\n");
92
93
95 ok(
result == 1,
"GetWorldTransform should succeed\n");
96 ok(xform.
eM11 > 0,
"xform.eM11 should not be 0\n");
97 ok(xform.
eM12 == 0,
"xform.eM12 should be 0\n");
98 ok(xform.
eM21 == 0,
"xform.eM21 should be 0\n");
99 ok(xform.
eM22 > 0,
"xform.eM22 should not be 0\n");
100
107
114
117 ok(xform.
eM11 == 0,
"xform.eM11 should be 0\n");
118 ok(xform.
eM12 == 1,
"xform.eM12 should be 1\n");
119 ok(xform.
eM21 == 1,
"xform.eM21 should be 1\n");
120 ok(xform.
eM22 == 0,
"xform.eM22 should be 0\n");
121
123}
#define ok_int(expression, result)
int WINAPI SetGraphicsMode(_In_ HDC, _In_ int)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI GetWorldTransform(_In_ HDC, _Out_ LPXFORM)
BOOL WINAPI SetWorldTransform(_In_ HDC, _In_ const XFORM *)
BOOL WINAPI DeleteDC(_In_ HDC)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
Referenced by START_TEST().