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
bf1cdf58
Commit
bf1cdf58
authored
Feb 15, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Use todo_wine_if() in tests.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
43a64e38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
28 deletions
+10
-28
editor.c
dlls/riched20/tests/editor.c
+10
-28
No files found.
dlls/riched20/tests/editor.c
View file @
bf1cdf58
...
...
@@ -4578,13 +4578,9 @@ static void check_EM_EXSETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id
SendMessageA
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
start
,
(
LPARAM
)
&
end
);
if
(
setsel
->
todo
)
{
todo_wine
{
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_EXSETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
}
else
{
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_EXSETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
todo_wine_if
(
setsel
->
todo
)
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_EXSETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
static
void
test_EM_EXSETSEL
(
void
)
...
...
@@ -4636,13 +4632,9 @@ static void check_EM_SETSEL(HWND hwnd, const struct exsetsel_s *setsel, int id)
SendMessageA
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
start
,
(
LPARAM
)
&
end
);
if
(
setsel
->
todo
)
{
todo_wine
{
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_SETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
}
else
{
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_SETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
todo_wine_if
(
setsel
->
todo
)
ok
(
start
==
setsel
->
expected_getsel_start
&&
end
==
setsel
->
expected_getsel_end
,
"EM_SETSEL(%d): expected (%d,%d) actual:(%d,%d)
\n
"
,
id
,
setsel
->
expected_getsel_start
,
setsel
->
expected_getsel_end
,
start
,
end
);
}
static
void
test_EM_SETSEL
(
void
)
...
...
@@ -7826,15 +7818,10 @@ static void test_EM_FINDWORDBREAK_W(void)
wbuf
[
1
]
=
0
;
SendMessageW
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
wbuf
);
result
=
SendMessageW
(
hwndRichEdit
,
EM_FINDWORDBREAK
,
WB_ISDELIMITER
,
0
);
if
(
wbuf
[
0
]
==
0x20
||
wbuf
[
0
]
==
0xf020
)
todo_wine
ok
(
result
==
delimiter_tests
[
i
].
isdelimiter
,
"wanted ISDELIMITER_W(0x%x) %d, got %d
\n
"
,
delimiter_tests
[
i
].
c
,
delimiter_tests
[
i
].
isdelimiter
,
result
);
else
todo_wine_if
(
wbuf
[
0
]
==
0x20
||
wbuf
[
0
]
==
0xf020
)
ok
(
result
==
delimiter_tests
[
i
].
isdelimiter
,
"wanted ISDELIMITER_W(0x%x) %d, got %d
\n
"
,
delimiter_tests
[
i
].
c
,
delimiter_tests
[
i
].
isdelimiter
,
result
);
"wanted ISDELIMITER_W(0x%x) %d, got %d
\n
"
,
delimiter_tests
[
i
].
c
,
delimiter_tests
[
i
].
isdelimiter
,
result
);
}
DestroyWindow
(
hwndRichEdit
);
}
...
...
@@ -7864,12 +7851,7 @@ static void test_EM_FINDWORDBREAK_A(void)
buf
[
1
]
=
0
;
SendMessageA
(
hwndRichEdit
,
WM_SETTEXT
,
0
,
(
LPARAM
)
buf
);
result
=
SendMessageA
(
hwndRichEdit
,
EM_FINDWORDBREAK
,
WB_ISDELIMITER
,
0
);
if
(
buf
[
0
]
==
0x20
)
todo_wine
ok
(
result
==
delimiter_tests
[
i
].
isdelimiter
,
"wanted ISDELIMITER_A(0x%x) %d, got %d
\n
"
,
delimiter_tests
[
i
].
c
,
delimiter_tests
[
i
].
isdelimiter
,
result
);
else
todo_wine_if
(
buf
[
0
]
==
0x20
)
ok
(
result
==
delimiter_tests
[
i
].
isdelimiter
,
"wanted ISDELIMITER_A(0x%x) %d, got %d
\n
"
,
delimiter_tests
[
i
].
c
,
delimiter_tests
[
i
].
isdelimiter
,
result
);
...
...
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