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
d5bd6673
Commit
d5bd6673
authored
Jan 28, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Get rid of strstr_wa.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
765fc5cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
style.c
dlls/mshtml/tests/style.c
+3
-20
No files found.
dlls/mshtml/tests/style.c
View file @
d5bd6673
...
...
@@ -81,22 +81,6 @@ static BSTR a2bstr(const char *str)
return
ret
;
}
static
const
WCHAR
*
strstr_wa
(
const
WCHAR
*
str
,
const
char
*
suba
)
{
BSTR
sub
;
const
WCHAR
*
ret
=
NULL
;
sub
=
a2bstr
(
suba
);
while
(
*
str
)
{
const
WCHAR
*
p1
=
str
,
*
p2
=
sub
;
while
(
*
p1
&&
*
p2
&&
*
p1
==
*
p2
)
{
p1
++
;
p2
++
;
}
if
(
!*
p2
)
{
ret
=
str
;
break
;}
str
++
;
}
SysFreeString
(
sub
);
return
ret
;
}
#define test_var_bstr(a,b) _test_var_bstr(__LINE__,a,b)
static
void
_test_var_bstr
(
unsigned
line
,
const
VARIANT
*
v
,
const
char
*
expect
)
{
...
...
@@ -2920,14 +2904,13 @@ static void test_body_style(IHTMLStyle *style)
if
(
hres
!=
E_INVALIDARG
)
{
hres
=
IHTMLStyle_get_listStyle
(
style
,
&
str
);
ok
(
hres
==
S_OK
,
"get_listStyle failed: %08x
\n
"
,
hres
);
ok
(
strstr_wa
(
str
,
"decimal-leading-zero"
)
&&
strstr_wa
(
str
,
"inside"
)
!=
NULL
,
ok
(
wcsstr
(
str
,
L"decimal-leading-zero"
)
&&
wcsstr
(
str
,
L"inside"
),
"listStyle = %s
\n
"
,
wine_dbgstr_w
(
str
));
if
(
compat_mode
<
COMPAT_IE9
)
ok
(
strstr_wa
(
str
,
"none"
)
!=
NULL
,
"listStyle = %s
\n
"
,
wine_dbgstr_w
(
str
));
ok
(
wcsstr
(
str
,
L
"none"
)
!=
NULL
,
"listStyle = %s
\n
"
,
wine_dbgstr_w
(
str
));
else
todo_wine
ok
(
!
strstr_wa
(
str
,
"none"
),
"listStyle = %s
\n
"
,
wine_dbgstr_w
(
str
));
ok
(
!
wcsstr
(
str
,
L
"none"
),
"listStyle = %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
}
else
{
...
...
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