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
b3fe7f7c
Commit
b3fe7f7c
authored
May 19, 2015
by
Huw Davies
Committed by
Alexandre Julliard
May 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix tests on Windows 8.
parent
16274e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
edit.c
dlls/user32/tests/edit.c
+14
-5
No files found.
dlls/user32/tests/edit.c
View file @
b3fe7f7c
...
...
@@ -841,12 +841,14 @@ static void zero_notify(void)
}
#define test_notify(enchange, enmaxtext, enupdate) \
do { \
ok(notifications.en_change == enchange, "expected %d EN_CHANGE notifications, " \
"got %d\n", enchange, notifications.en_change); \
ok(notifications.en_maxtext == enmaxtext, "expected %d EN_MAXTEXT notifications, " \
"got %d\n", enmaxtext, notifications.en_maxtext); \
ok(notifications.en_update == enupdate, "expected %d EN_UPDATE notifications, " \
"got %d\n", enupdate, notifications.en_update)
"got %d\n", enupdate, notifications.en_update); \
} while(0)
static
LRESULT
CALLBACK
edit3_wnd_procA
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
...
...
@@ -907,8 +909,10 @@ static void test_edit_control_3(void)
zero_notify
();
SendMessageA
(
hWnd
,
EM_REPLACESEL
,
0
,
(
LPARAM
)
str
);
len
=
SendMessageA
(
hWnd
,
WM_GETTEXTLENGTH
,
0
,
0
);
ok
(
lstrlenA
(
str
)
>
len
,
"text should have been truncated
\n
"
);
test_notify
(
1
,
1
,
1
);
if
(
len
==
lstrlenA
(
str
))
/* Win 8 */
test_notify
(
1
,
0
,
1
);
else
test_notify
(
1
,
1
,
1
);
SendMessageA
(
hWnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
""
);
zero_notify
();
...
...
@@ -998,8 +1002,13 @@ static void test_edit_control_3(void)
zero_notify
();
SendMessageA
(
hWnd
,
EM_REPLACESEL
,
0
,
(
LPARAM
)
str
);
len
=
SendMessageA
(
hWnd
,
WM_GETTEXTLENGTH
,
0
,
0
);
ok
(
0
==
len
,
"text should have been truncated, expected 0, got %d
\n
"
,
len
);
test_notify
(
1
,
1
,
1
);
if
(
len
==
lstrlenA
(
str
))
/* Win 8 */
test_notify
(
1
,
0
,
1
);
else
{
ok
(
0
==
len
,
"text should have been truncated, expected 0, got %d
\n
"
,
len
);
test_notify
(
1
,
1
,
1
);
}
SendMessageA
(
hWnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
""
);
zero_notify
();
...
...
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