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
86bb053c
Commit
86bb053c
authored
Oct 08, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Win64 printf format warning fixes.
parent
48b550c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
Makefile.in
dlls/riched20/tests/Makefile.in
+0
-1
editor.c
dlls/riched20/tests/editor.c
+7
-7
No files found.
dlls/riched20/tests/Makefile.in
View file @
86bb053c
...
...
@@ -4,7 +4,6 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
TESTDLL
=
riched20.dll
IMPORTS
=
riched20 user32 gdi32 kernel32
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
editor.c
...
...
dlls/riched20/tests/editor.c
View file @
86bb053c
...
...
@@ -147,11 +147,11 @@ static void check_EM_FINDTEXTEX(HWND hwnd, const char *name, struct find_s *f,
"EM_FINDTEXTEX(%s,%d) '%s' in range(%d,%d), flags %08x, start at %d
\n
"
,
name
,
id
,
f
->
needle
,
f
->
start
,
f
->
end
,
f
->
flags
,
findloc
);
ok
(
ft
.
chrgText
.
cpMin
==
f
->
expected_loc
,
"EM_FINDTEXTEX(%s,%d) '%s' in range(%d,%d), flags %08x, start at %
l
d
\n
"
,
"EM_FINDTEXTEX(%s,%d) '%s' in range(%d,%d), flags %08x, start at %d
\n
"
,
name
,
id
,
f
->
needle
,
f
->
start
,
f
->
end
,
f
->
flags
,
ft
.
chrgText
.
cpMin
);
ok
(
ft
.
chrgText
.
cpMax
==
((
f
->
expected_loc
==
-
1
)
?
-
1
:
f
->
expected_loc
+
strlen
(
f
->
needle
)),
"EM_FINDTEXTEX(%s,%d) '%s' in range(%d,%d), flags %08x, end at %
l
d
\n
"
,
"EM_FINDTEXTEX(%s,%d) '%s' in range(%d,%d), flags %08x, end at %d
\n
"
,
name
,
id
,
f
->
needle
,
f
->
start
,
f
->
end
,
f
->
flags
,
ft
.
chrgText
.
cpMax
);
}
...
...
@@ -256,7 +256,7 @@ static int get_scroll_pos_y(HWND hwnd)
{
POINT
p
=
{
-
1
,
-
1
};
SendMessage
(
hwnd
,
EM_GETSCROLLPOS
,
0
,
(
LPARAM
)
&
p
);
ok
(
p
.
x
!=
-
1
&&
p
.
y
!=
-
1
,
"p.x:%
ld p.y:%l
d
\n
"
,
p
.
x
,
p
.
y
);
ok
(
p
.
x
!=
-
1
&&
p
.
y
!=
-
1
,
"p.x:%
d p.y:%
d
\n
"
,
p
.
x
,
p
.
y
);
return
p
.
y
;
}
...
...
@@ -406,7 +406,7 @@ static void test_EM_SETTEXTMODE(void)
/*Compare the two formattings*/
ok
((
cf2
.
dwMask
==
cf2test
.
dwMask
)
&&
(
cf2
.
dwEffects
==
cf2test
.
dwEffects
),
"two formats found in plain text mode - cf2.dwEffects: %
lx cf2test.dwEffects: %l
x
\n
"
,
"two formats found in plain text mode - cf2.dwEffects: %
x cf2test.dwEffects: %
x
\n
"
,
cf2
.
dwEffects
,
cf2test
.
dwEffects
);
/*Test TM_RICHTEXT by: switching back to Rich Text mode
printing "wine" in the current format(normal)
...
...
@@ -450,7 +450,7 @@ static void test_EM_SETTEXTMODE(void)
/*Test that the two formattings are not the same*/
todo_wine
ok
((
cf2
.
dwMask
==
cf2test
.
dwMask
)
&&
(
cf2
.
dwEffects
!=
cf2test
.
dwEffects
),
"expected different formats - cf2.dwMask: %
lx, cf2test.dwMask: %lx, cf2.dwEffects: %lx, cf2test.dwEffects: %l
x
\n
"
,
"expected different formats - cf2.dwMask: %
x, cf2test.dwMask: %x, cf2.dwEffects: %x, cf2test.dwEffects: %
x
\n
"
,
cf2
.
dwMask
,
cf2test
.
dwMask
,
cf2
.
dwEffects
,
cf2test
.
dwEffects
);
DestroyWindow
(
hwndRichEdit
);
...
...
@@ -501,7 +501,7 @@ static void test_TM_PLAINTEXT(void)
/*Test that they are the same as plain text allows only one formatting*/
ok
((
cf2
.
dwMask
==
cf2test
.
dwMask
)
&&
(
cf2
.
dwEffects
==
cf2test
.
dwEffects
),
"two selections' formats differ - cf2.dwMask: %
lx, cf2test.dwMask %lx, cf2.dwEffects: %lx, cf2test.dwEffects: %l
x
\n
"
,
"two selections' formats differ - cf2.dwMask: %
x, cf2test.dwMask %x, cf2.dwEffects: %x, cf2test.dwEffects: %
x
\n
"
,
cf2
.
dwMask
,
cf2test
.
dwMask
,
cf2
.
dwEffects
,
cf2test
.
dwEffects
);
/*Fill the control with a "wine" string, which when inserted will be bold*/
...
...
@@ -553,7 +553,7 @@ static void test_TM_PLAINTEXT(void)
/*Compare the two formattings. They should be the same.*/
ok
((
cf2
.
dwMask
==
cf2test
.
dwMask
)
&&
(
cf2
.
dwEffects
==
cf2test
.
dwEffects
),
"Copied text retained formatting - cf2.dwMask: %
lx, cf2test.dwMask: %lx, cf2.dwEffects: %lx, cf2test.dwEffects: %l
x
\n
"
,
"Copied text retained formatting - cf2.dwMask: %
x, cf2test.dwMask: %x, cf2.dwEffects: %x, cf2test.dwEffects: %
x
\n
"
,
cf2
.
dwMask
,
cf2test
.
dwMask
,
cf2
.
dwEffects
,
cf2test
.
dwEffects
);
DestroyWindow
(
hwndRichEdit
);
}
...
...
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