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
01ebba0f
Commit
01ebba0f
authored
Aug 16, 2012
by
Qian Hong
Committed by
Alexandre Julliard
Aug 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Added UTF8 BOM test.
parent
50fe9b87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
editor.c
dlls/riched20/tests/editor.c
+16
-0
No files found.
dlls/riched20/tests/editor.c
View file @
01ebba0f
...
...
@@ -5011,6 +5011,8 @@ static void test_EM_STREAMIN(void)
const
char
*
streamText3
=
"RichEdit1"
;
const
char
*
streamTextUTF8BOM
=
"
\xef\xbb\xbf
TestUTF8WithBOM"
;
const
char
*
streamText4
=
"This text just needs to be long enough to cause run to be split onto "
"two separate lines and make sure the null terminating character is "
...
...
@@ -5111,6 +5113,20 @@ static void test_EM_STREAMIN(void)
"EM_STREAMIN: Test 3 set wrong text: Result: %s
\n
"
,
buffer
);
ok
(
es
.
dwError
==
-
16
,
"EM_STREAMIN: Test 3 set error %d, expected %d
\n
"
,
es
.
dwError
,
-
16
);
es
.
dwCookie
=
(
DWORD_PTR
)
&
streamTextUTF8BOM
;
es
.
dwError
=
0
;
es
.
pfnCallback
=
test_EM_STREAMIN_esCallback
;
result
=
SendMessage
(
hwndRichEdit
,
EM_STREAMIN
,
SF_TEXT
,
(
LPARAM
)
&
es
);
ok
(
result
==
18
,
"got %ld, expected %d
\n
"
,
result
,
18
);
result
=
SendMessage
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
todo_wine
ok
(
result
==
15
,
"EM_STREAMIN: Test UTF8WithBOM returned %ld, expected 15
\n
"
,
result
);
result
=
strcmp
(
buffer
,
"TestUTF8WithBOM"
);
todo_wine
ok
(
result
==
0
,
"EM_STREAMIN: Test UTF8WithBOM set wrong text: Result: %s
\n
"
,
buffer
);
ok
(
es
.
dwError
==
0
,
"EM_STREAMIN: Test UTF8WithBOM set error %d, expected %d
\n
"
,
es
.
dwError
,
0
);
es
.
dwCookie
=
(
DWORD_PTR
)
&
cookieForStream4
;
es
.
dwError
=
0
;
es
.
pfnCallback
=
test_EM_STREAMIN_esCallback2
;
...
...
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