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
12c964be
Commit
12c964be
authored
Oct 12, 2010
by
Austin Lund
Committed by
Alexandre Julliard
Oct 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched32/tests: Correct error messages in EM_POSFROMCHAR tests.
parent
7acdc0a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
editor.c
dlls/riched32/tests/editor.c
+7
-7
No files found.
dlls/riched32/tests/editor.c
View file @
12c964be
...
@@ -776,13 +776,13 @@ static void test_EM_POSFROMCHAR(void)
...
@@ -776,13 +776,13 @@ static void test_EM_POSFROMCHAR(void)
else
if
(
i
==
1
)
else
if
(
i
==
1
)
{
{
ok
(
pl
.
y
>
0
,
"EM_POSFROMCHAR reports y=%d, expected > 0
\n
"
,
pl
.
y
);
ok
(
pl
.
y
>
0
,
"EM_POSFROMCHAR reports y=%d, expected > 0
\n
"
,
pl
.
y
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
1
\n
"
,
pl
.
x
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
%d
\n
"
,
pl
.
x
,
xpos
);
height
=
pl
.
y
;
height
=
pl
.
y
;
}
}
else
else
{
{
ok
(
pl
.
y
==
i
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
i
*
height
);
ok
(
pl
.
y
==
i
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
i
*
height
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
1
\n
"
,
pl
.
x
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
%d
\n
"
,
pl
.
x
,
xpos
);
}
}
}
}
...
@@ -790,13 +790,13 @@ static void test_EM_POSFROMCHAR(void)
...
@@ -790,13 +790,13 @@ static void test_EM_POSFROMCHAR(void)
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
50
*
16
);
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
50
*
16
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
pl
.
y
==
50
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
50
*
height
);
ok
(
pl
.
y
==
50
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
50
*
height
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
1
\n
"
,
pl
.
x
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
%d
\n
"
,
pl
.
x
,
xpos
);
/* Testing position way past end of text */
/* Testing position way past end of text */
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
55
*
16
);
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
55
*
16
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
pl
.
y
==
50
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
50
*
height
);
ok
(
pl
.
y
==
50
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
50
*
height
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
1
\n
"
,
pl
.
x
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
%d
\n
"
,
pl
.
x
,
xpos
);
/* Testing that vertical scrolling does, in fact, have an effect on EM_POSFROMCHAR */
/* Testing that vertical scrolling does, in fact, have an effect on EM_POSFROMCHAR */
...
@@ -809,20 +809,20 @@ static void test_EM_POSFROMCHAR(void)
...
@@ -809,20 +809,20 @@ static void test_EM_POSFROMCHAR(void)
ok
(
pl
.
y
==
(
i
-
1
)
*
height
,
ok
(
pl
.
y
==
(
i
-
1
)
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
(
i
-
1
)
*
height
);
pl
.
y
,
(
i
-
1
)
*
height
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
1
\n
"
,
pl
.
x
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
%d
\n
"
,
pl
.
x
,
xpos
);
}
}
/* Testing position at end of text */
/* Testing position at end of text */
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
50
*
16
);
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
50
*
16
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
pl
.
y
==
(
50
-
1
)
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
(
50
-
1
)
*
height
);
ok
(
pl
.
y
==
(
50
-
1
)
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
(
50
-
1
)
*
height
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
1
\n
"
,
pl
.
x
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
%d
\n
"
,
pl
.
x
,
xpos
);
/* Testing position way past end of text */
/* Testing position way past end of text */
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
55
*
16
);
result
=
SendMessage
(
hwndRichEdit
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pl
,
55
*
16
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
result
==
0
,
"EM_POSFROMCHAR returned %ld, expected 0
\n
"
,
result
);
ok
(
pl
.
y
==
(
50
-
1
)
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
(
50
-
1
)
*
height
);
ok
(
pl
.
y
==
(
50
-
1
)
*
height
,
"EM_POSFROMCHAR reports y=%d, expected %d
\n
"
,
pl
.
y
,
(
50
-
1
)
*
height
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
1
\n
"
,
pl
.
x
);
ok
(
pl
.
x
==
xpos
,
"EM_POSFROMCHAR reports x=%d, expected
%d
\n
"
,
pl
.
x
,
xpos
);
/* Testing that horizontal scrolling does, in fact, have an effect on EM_POSFROMCHAR */
/* Testing that horizontal scrolling does, in fact, have an effect on EM_POSFROMCHAR */
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text
);
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
text
);
...
...
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