Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
5e66808a
Commit
5e66808a
authored
Dec 18, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Fix tests on Win9x by using A-calls.
parent
50d76df1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
editor.c
dlls/riched20/tests/editor.c
+22
-22
No files found.
dlls/riched20/tests/editor.c
View file @
5e66808a
...
...
@@ -5853,7 +5853,7 @@ static void test_format_rect(void)
expected
=
clientRect
;
expected
.
left
+=
1
;
expected
.
right
-=
1
;
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5867,14 +5867,14 @@ static void test_format_rect(void)
rc
.
left
+=
n
;
rc
.
bottom
-=
n
;
rc
.
right
-=
n
;
SendMessage
W
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
expected
=
rc
;
expected
.
top
=
max
(
0
,
rc
.
top
);
expected
.
left
=
max
(
0
,
rc
.
left
);
expected
.
bottom
=
min
(
clientRect
.
bottom
,
rc
.
bottom
);
expected
.
right
=
min
(
clientRect
.
right
,
rc
.
right
);
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"[n=%d] rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5883,9 +5883,9 @@ static void test_format_rect(void)
}
rc
=
clientRect
;
SendMessage
W
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
expected
=
clientRect
;
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5893,11 +5893,11 @@ static void test_format_rect(void)
expected
.
top
,
expected
.
left
,
expected
.
bottom
,
expected
.
right
);
/* Adding the selectionbar adds the selectionbar width to the left side. */
SendMessage
W
(
hwnd
,
EM_SETOPTIONS
,
ECOOP_OR
,
ECO_SELECTIONBAR
);
options
=
SendMessage
W
(
hwnd
,
EM_GETOPTIONS
,
0
,
0
);
SendMessage
A
(
hwnd
,
EM_SETOPTIONS
,
ECOOP_OR
,
ECO_SELECTIONBAR
);
options
=
SendMessage
A
(
hwnd
,
EM_GETOPTIONS
,
0
,
0
);
ok
(
options
&
ECO_SELECTIONBAR
,
"EM_SETOPTIONS failed to add selectionbar.
\n
"
);
expected
.
left
+=
8
;
/* selection bar width */
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5905,9 +5905,9 @@ static void test_format_rect(void)
expected
.
top
,
expected
.
left
,
expected
.
bottom
,
expected
.
right
);
rc
=
clientRect
;
SendMessage
W
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
expected
=
clientRect
;
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5916,11 +5916,11 @@ static void test_format_rect(void)
/* Removing the selectionbar subtracts the selectionbar width from the left side,
* even if the left side is already 0. */
SendMessage
W
(
hwnd
,
EM_SETOPTIONS
,
ECOOP_AND
,
~
ECO_SELECTIONBAR
);
options
=
SendMessage
W
(
hwnd
,
EM_GETOPTIONS
,
0
,
0
);
SendMessage
A
(
hwnd
,
EM_SETOPTIONS
,
ECOOP_AND
,
~
ECO_SELECTIONBAR
);
options
=
SendMessage
A
(
hwnd
,
EM_GETOPTIONS
,
0
,
0
);
ok
(
!
(
options
&
ECO_SELECTIONBAR
),
"EM_SETOPTIONS failed to remove selectionbar.
\n
"
);
expected
.
left
-=
8
;
/* selection bar width */
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5929,9 +5929,9 @@ static void test_format_rect(void)
/* Set the absolute value of the formatting rectangle. */
rc
=
clientRect
;
SendMessage
W
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
expected
=
clientRect
;
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"[n=%d] rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5946,8 +5946,8 @@ static void test_format_rect(void)
rc
.
bottom
=
clientRect
.
bottom
-
15
;
rc
.
right
=
clientRect
.
right
-
15
;
expected
=
rc
;
SendMessage
W
(
hwnd
,
EM_SETRECT
,
1
,
(
LPARAM
)
&
rc
);
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_SETRECT
,
1
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5961,8 +5961,8 @@ static void test_format_rect(void)
rc
.
bottom
=
clientRect
.
bottom
+
15
;
rc
.
right
=
clientRect
.
right
+
15
;
expected
=
rc
;
SendMessage
W
(
hwnd
,
EM_SETRECT
,
1
,
(
LPARAM
)
&
rc
);
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_SETRECT
,
1
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5983,7 +5983,7 @@ static void test_format_rect(void)
expected
.
left
+=
1
;
expected
.
top
+=
1
;
expected
.
right
-=
1
;
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
@@ -5999,8 +5999,8 @@ static void test_format_rect(void)
expected
.
top
-=
1
;
expected
.
left
-=
1
;
expected
.
right
+=
1
;
SendMessage
W
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
W
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_SETRECT
,
0
,
(
LPARAM
)
&
rc
);
SendMessage
A
(
hwnd
,
EM_GETRECT
,
0
,
(
LPARAM
)
&
rc
);
ok
(
rc
.
top
==
expected
.
top
&&
rc
.
left
==
expected
.
left
&&
rc
.
bottom
==
expected
.
bottom
&&
rc
.
right
==
expected
.
right
,
"rect a(t=%d, l=%d, b=%d, r=%d) != e(t=%d, l=%d, b=%d, r=%d)
\n
"
,
...
...
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