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
16477845
Commit
16477845
authored
Jan 16, 2009
by
Dylan Smith
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Added test for detecting ascii rtf with Unicode codepage.
parent
0730963d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
editor.c
dlls/riched20/tests/editor.c
+17
-0
No files found.
dlls/riched20/tests/editor.c
View file @
16477845
...
...
@@ -3562,6 +3562,23 @@ static void test_EM_SETTEXTEX(void)
ok
(
lstrcmpW
(
buf
,
TestItem1
)
==
0
,
"EM_GETTEXTEX results not what was set by EM_SETTEXTEX
\n
"
);
/* The following test demonstrates that EM_SETTEXTEX treats text as ASCII if it
* starts with ASCII characters "{\rtf" even when the codepage is unicode. */
setText
.
codepage
=
1200
;
/* Lie about code page (actual ASCII) */
getText
.
codepage
=
CP_ACP
;
getText
.
cb
=
MAX_BUF_LEN
;
getText
.
flags
=
GT_DEFAULT
;
getText
.
lpDefaultChar
=
NULL
;
getText
.
lpUsedDefChar
=
NULL
;
setText
.
flags
=
ST_SELECTION
;
SendMessage
(
hwndRichEdit
,
EM_SETSEL
,
0
,
-
1
);
result
=
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
"{
\\
rtf not unicode}"
);
todo_wine
ok
(
result
==
11
,
"EM_SETTEXTEX incorrectly returned %d
\n
"
,
result
);
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
bufACP
);
todo_wine
ok
(
lstrcmpA
(
bufACP
,
"not unicode"
)
==
0
,
"'%s' != 'not unicode'
\n
"
,
bufACP
);
/* The following test demonstrates that EM_SETTEXTEX supports RTF strings with a selection */
SendMessage
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
"TestSomeText"
);
/* TestItem1 */
p
=
(
char
*
)
buf
;
...
...
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