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
5520dcab
Commit
5520dcab
authored
Sep 27, 2013
by
Jactry Zeng
Committed by
Alexandre Julliard
Sep 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Add UTF8 BOM tests for EM_SETTEXTEX.
parent
437c8465
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 @
5520dcab
...
...
@@ -3913,6 +3913,23 @@ static void test_EM_SETTEXTEX(void)
SendMessage
(
hwndRichEdit
,
EM_GETTEXTEX
,
(
WPARAM
)
&
getText
,
(
LPARAM
)
bufACP
);
ok
(
!
strcmp
(
bufACP
,
"morerichtext"
),
"expected 'morerichtext' but got '%s'
\n
"
,
bufACP
);
/* test for utf8 text with BOM */
setText
.
flags
=
0
;
setText
.
codepage
=
CP_ACP
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
"
\xef\xbb\xbf
TestUTF8WithBOM"
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
bufACP
);
todo_wine
ok
(
result
==
15
,
"EM_SETTEXTEX: Test UTF8 with BOM returned %d, expected 15
\n
"
,
result
);
result
=
strcmp
(
bufACP
,
"TestUTF8WithBOM"
);
todo_wine
ok
(
result
==
0
,
"EM_SETTEXTEX: Test UTF8 with BOM set wrong text: Result: %s
\n
"
,
bufACP
);
setText
.
flags
=
0
;
setText
.
codepage
=
CP_UTF8
;
SendMessage
(
hwndRichEdit
,
EM_SETTEXTEX
,
(
WPARAM
)
&
setText
,
(
LPARAM
)
"
\xef\xbb\xbf
TestUTF8WithBOM"
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
bufACP
);
todo_wine
ok
(
result
==
15
,
"EM_SETTEXTEX: Test UTF8 with BOM returned %d, expected 15
\n
"
,
result
);
result
=
strcmp
(
bufACP
,
"TestUTF8WithBOM"
);
todo_wine
ok
(
result
==
0
,
"EM_SETTEXTEX: Test UTF8 with BOM set wrong text: Result: %s
\n
"
,
bufACP
);
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