Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3ce1d494
Commit
3ce1d494
authored
May 06, 2022
by
Francois Gouget
Committed by
Alexandre Julliard
May 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Make the test_char_from_pos() failures more informative.
Signed-off-by:
Francois Gouget
<
fgouget@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5479e9f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
+15
-12
edit.c
dlls/user32/tests/edit.c
+15
-12
No files found.
dlls/user32/tests/edit.c
View file @
3ce1d494
...
...
@@ -1154,11 +1154,11 @@ static void test_char_from_pos(void)
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
0
==
ret
,
"
expected 0 got %d
\n
"
,
ret
);
ok
(
0
==
ret
,
"
%d/%d/%d: expected 0 got %d
\n
"
,
lo
,
i
,
mid
,
ret
);
}
for
(
i
=
mid
;
i
<=
hi
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
1
==
ret
,
"
expected 1 got %d
\n
"
,
ret
);
ok
(
1
==
ret
,
"
%d/%d/%d: expected 1 got %d
\n
"
,
mid
,
i
,
hi
,
ret
);
}
ret
=
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
2
,
0
);
ok
(
-
1
==
ret
,
"expected -1 got %d
\n
"
,
ret
);
...
...
@@ -1172,11 +1172,11 @@ static void test_char_from_pos(void)
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
0
==
ret
,
"
expected 0 got %d
\n
"
,
ret
);
ok
(
0
==
ret
,
"
%d/%d/%d: expected 0 got %d
\n
"
,
lo
,
i
,
mid
,
ret
);
}
for
(
i
=
mid
;
i
<=
hi
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
1
==
ret
,
"
expected 1 got %d
\n
"
,
ret
);
ok
(
1
==
ret
,
"
%d/%d/%d: expected 1 got %d
\n
"
,
mid
,
i
,
hi
,
ret
);
}
ret
=
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
2
,
0
);
ok
(
-
1
==
ret
,
"expected -1 got %d
\n
"
,
ret
);
...
...
@@ -1190,11 +1190,11 @@ static void test_char_from_pos(void)
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
0
==
ret
,
"
expected 0 got %d
\n
"
,
ret
);
ok
(
0
==
ret
,
"
%d/%d/%d: expected 0 got %d
\n
"
,
lo
,
i
,
mid
,
ret
);
}
for
(
i
=
mid
;
i
<=
hi
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
1
==
ret
,
"
expected 1 got %d
\n
"
,
ret
);
ok
(
1
==
ret
,
"
%d/%d/%d: expected 1 got %d
\n
"
,
mid
,
i
,
hi
,
ret
);
}
ret
=
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
2
,
0
);
ok
(
-
1
==
ret
,
"expected -1 got %d
\n
"
,
ret
);
...
...
@@ -1208,11 +1208,12 @@ static void test_char_from_pos(void)
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
((
0
==
ret
||
1
==
ret
/* Vista */
),
"expected 0 or 1 got %d
\n
"
,
ret
);
ok
(
0
==
ret
||
1
==
ret
/* Vista */
,
"%d/%d/%d: expected 0 or 1 got %d
\n
"
,
lo
,
i
,
mid
,
ret
);
}
for
(
i
=
mid
;
i
<=
hi
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
1
==
ret
,
"
expected 1 got %d
\n
"
,
ret
);
ok
(
1
==
ret
,
"
%d/%d/%d: expected 1 got %d
\n
"
,
mid
,
i
,
hi
,
ret
);
}
ret
=
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
2
,
0
);
ok
(
-
1
==
ret
,
"expected -1 got %d
\n
"
,
ret
);
...
...
@@ -1226,11 +1227,12 @@ static void test_char_from_pos(void)
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
((
0
==
ret
||
1
==
ret
/* Vista */
),
"expected 0 or 1 got %d
\n
"
,
ret
);
ok
(
0
==
ret
||
1
==
ret
/* Vista */
,
"%d/%d/%d: expected 0 or 1 got %d
\n
"
,
lo
,
i
,
mid
,
ret
);
}
for
(
i
=
mid
;
i
<=
hi
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
1
==
ret
,
"
expected 1 got %d
\n
"
,
ret
);
ok
(
1
==
ret
,
"
%d/%d/%d: expected 1 got %d
\n
"
,
mid
,
i
,
hi
,
ret
);
}
ret
=
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
2
,
0
);
ok
(
-
1
==
ret
,
"expected -1 got %d
\n
"
,
ret
);
...
...
@@ -1244,11 +1246,12 @@ static void test_char_from_pos(void)
for
(
i
=
lo
;
i
<
mid
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
((
0
==
ret
||
1
==
ret
/* Vista */
),
"expected 0 or 1 got %d
\n
"
,
ret
);
ok
(
0
==
ret
||
1
==
ret
/* Vista */
,
"%d/%d/%d: expected 0 or 1 got %d
\n
"
,
lo
,
i
,
mid
,
ret
);
}
for
(
i
=
mid
;
i
<=
hi
;
i
++
)
{
ret
=
LOWORD
(
SendMessageA
(
hwEdit
,
EM_CHARFROMPOS
,
0
,
i
));
ok
(
1
==
ret
,
"
expected 1 got %d
\n
"
,
ret
);
ok
(
1
==
ret
,
"
%d/%d/%d: expected 1 got %d
\n
"
,
mid
,
i
,
hi
,
ret
);
}
ret
=
SendMessageA
(
hwEdit
,
EM_POSFROMCHAR
,
2
,
0
);
ok
(
-
1
==
ret
,
"expected -1 got %d
\n
"
,
ret
);
...
...
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