Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6b2c2d39
Commit
6b2c2d39
authored
Apr 18, 2019
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Apr 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Remove win9x workarounds in margin tests.
Signed-off-by:
Akihiro Sagawa
<
sagawa.aki@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a4560e01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
edit.c
dlls/user32/tests/edit.c
+11
-11
No files found.
dlls/user32/tests/edit.c
View file @
6b2c2d39
...
...
@@ -1808,39 +1808,39 @@ static void test_margins_font_change(void)
SendMessageA
(
hwEdit
,
EM_SETMARGINS
,
EC_LEFTMARGIN
|
EC_RIGHTMARGIN
,
MAKELONG
(
0
,
0
));
SendMessageA
(
hwEdit
,
WM_SETFONT
,
(
WPARAM
)
hfont
,
0
);
margins
=
SendMessageA
(
hwEdit
,
EM_GETMARGINS
,
0
,
0
);
ok
(
LOWORD
(
margins
)
==
0
||
broken
(
LOWORD
(
margins
)
==
LOWORD
(
font_margins
)),
/* win95 */
ok
(
LOWORD
(
margins
)
==
0
,
"got %d
\n
"
,
LOWORD
(
margins
));
ok
(
HIWORD
(
margins
)
==
0
||
broken
(
HIWORD
(
margins
)
==
HIWORD
(
font_margins
)),
/* win95 */
ok
(
HIWORD
(
margins
)
==
0
,
"got %d
\n
"
,
HIWORD
(
margins
));
SendMessageA
(
hwEdit
,
EM_SETMARGINS
,
EC_LEFTMARGIN
|
EC_RIGHTMARGIN
,
MAKELONG
(
1
,
0
));
SendMessageA
(
hwEdit
,
WM_SETFONT
,
(
WPARAM
)
hfont
,
0
);
margins
=
SendMessageA
(
hwEdit
,
EM_GETMARGINS
,
0
,
0
);
ok
(
LOWORD
(
margins
)
==
1
||
broken
(
LOWORD
(
margins
)
==
LOWORD
(
font_margins
)),
/* win95 */
ok
(
LOWORD
(
margins
)
==
1
,
"got %d
\n
"
,
LOWORD
(
margins
));
ok
(
HIWORD
(
margins
)
==
0
||
broken
(
HIWORD
(
margins
)
==
HIWORD
(
font_margins
)),
/* win95 */
ok
(
HIWORD
(
margins
)
==
0
,
"got %d
\n
"
,
HIWORD
(
margins
));
SendMessageA
(
hwEdit
,
EM_SETMARGINS
,
EC_LEFTMARGIN
|
EC_RIGHTMARGIN
,
MAKELONG
(
1
,
1
));
SendMessageA
(
hwEdit
,
WM_SETFONT
,
(
WPARAM
)
hfont
,
0
);
margins
=
SendMessageA
(
hwEdit
,
EM_GETMARGINS
,
0
,
0
);
ok
(
LOWORD
(
margins
)
==
1
||
broken
(
LOWORD
(
margins
)
==
LOWORD
(
font_margins
)),
/* win95 */
ok
(
LOWORD
(
margins
)
==
1
,
"got %d
\n
"
,
LOWORD
(
margins
));
ok
(
HIWORD
(
margins
)
==
1
||
broken
(
HIWORD
(
margins
)
==
HIWORD
(
font_margins
)),
/* win95 */
ok
(
HIWORD
(
margins
)
==
1
,
"got %d
\n
"
,
HIWORD
(
margins
));
SendMessageA
(
hwEdit
,
EM_SETMARGINS
,
EC_LEFTMARGIN
|
EC_RIGHTMARGIN
,
MAKELONG
(
EC_USEFONTINFO
,
EC_USEFONTINFO
));
margins
=
SendMessageA
(
hwEdit
,
EM_GETMARGINS
,
0
,
0
);
ok
(
LOWORD
(
margins
)
==
1
||
broken
(
LOWORD
(
margins
)
==
LOWORD
(
font_margins
)),
/* win95 */
ok
(
LOWORD
(
margins
)
==
1
,
"got %d
\n
"
,
LOWORD
(
margins
));
ok
(
HIWORD
(
margins
)
==
1
||
broken
(
HIWORD
(
margins
)
==
HIWORD
(
font_margins
)),
/* win95 */
ok
(
HIWORD
(
margins
)
==
1
,
"got %d
\n
"
,
HIWORD
(
margins
));
SendMessageA
(
hwEdit
,
WM_SETFONT
,
(
WPARAM
)
hfont2
,
0
);
margins
=
SendMessageA
(
hwEdit
,
EM_GETMARGINS
,
0
,
0
);
ok
(
LOWORD
(
margins
)
==
1
||
broken
(
LOWORD
(
margins
)
!=
1
&&
LOWORD
(
margins
)
!=
LOWORD
(
font_margins
)),
/* win95 */
ok
(
LOWORD
(
margins
)
==
1
,
"got %d
\n
"
,
LOWORD
(
margins
));
ok
(
HIWORD
(
margins
)
==
1
||
broken
(
HIWORD
(
margins
)
!=
1
&&
HIWORD
(
margins
)
!=
HIWORD
(
font_margins
)),
/* win95 */
ok
(
HIWORD
(
margins
)
==
1
,
"got %d
\n
"
,
HIWORD
(
margins
));
/* Above a certain size threshold then the margin is updated */
...
...
@@ -1864,7 +1864,7 @@ static void test_margins_font_change(void)
ok
(
HIWORD
(
margins
)
==
HIWORD
(
font_margins
),
"got %d
\n
"
,
HIWORD
(
margins
));
SendMessageA
(
hwEdit
,
WM_SETFONT
,
(
WPARAM
)
hfont2
,
0
);
margins
=
SendMessageA
(
hwEdit
,
EM_GETMARGINS
,
0
,
0
);
ok
(
LOWORD
(
margins
)
!=
LOWORD
(
font_margins
)
||
broken
(
LOWORD
(
margins
)
==
LOWORD
(
font_margins
)),
/* win98 */
ok
(
LOWORD
(
margins
)
!=
LOWORD
(
font_margins
)
,
"got %d
\n
"
,
LOWORD
(
margins
));
ok
(
HIWORD
(
margins
)
!=
HIWORD
(
font_margins
),
"got %d
\n
"
,
HIWORD
(
margins
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment