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
a3160779
Commit
a3160779
authored
Jun 06, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jun 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Use strcmp_wa instead of lstrcmpW to test correctly on Win98.
parent
44ef1c9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
13 deletions
+5
-13
dom.c
dlls/mshtml/tests/dom.c
+5
-13
No files found.
dlls/mshtml/tests/dom.c
View file @
a3160779
...
...
@@ -58,14 +58,10 @@ static const char cond_comment_str[] =
"<!--[if gte IE 4]> <br> <![endif]-->"
"</body></html>"
;
static
const
WCHAR
noneW
[]
=
{
'N'
,
'o'
,
'n'
,
'e'
,
0
};
static
WCHAR
characterW
[]
=
{
'c'
,
'h'
,
'a'
,
'r'
,
'a'
,
'c'
,
't'
,
'e'
,
'r'
,
0
};
static
WCHAR
texteditW
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'e'
,
'd'
,
'i'
,
't'
,
0
};
static
WCHAR
wordW
[]
=
{
'w'
,
'o'
,
'r'
,
'd'
,
0
};
static
const
WCHAR
text_javascriptW
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'/'
,
'j'
,
'a'
,
'v'
,
'a'
,
's'
,
'c'
,
'r'
,
'i'
,
'p'
,
't'
,
0
};
typedef
enum
{
ET_NONE
,
ET_HTML
,
...
...
@@ -3638,7 +3634,7 @@ static void test_default_selection(IHTMLDocument2 *doc)
hres
=
IHTMLSelectionObject_get_type
(
selection
,
&
str
);
ok
(
hres
==
S_OK
,
"get_type failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
str
,
noneW
),
"type = %s
\n
"
,
dbgstr_w
(
str
));
ok
(
!
strcmp_wa
(
str
,
"None"
),
"type = %s
\n
"
,
dbgstr_w
(
str
));
SysFreeString
(
str
);
hres
=
IHTMLSelectionObject_createRange
(
selection
,
&
disp
);
...
...
@@ -3661,7 +3657,6 @@ static void test_default_body(IHTMLBodyElement *body)
VARIANT
v
;
WCHAR
sBodyText
[]
=
{
'#'
,
'F'
,
'F'
,
'0'
,
'0'
,
'0'
,
'0'
,
0
};
WCHAR
sTextInvalid
[]
=
{
'I'
,
'n'
,
'v'
,
'a'
,
'l'
,
'i'
,
'd'
,
0
};
WCHAR
sResInvalid
[]
=
{
'#'
,
'0'
,
'0'
,
'a'
,
'0'
,
'd'
,
'0'
,
0
};
bstr
=
(
void
*
)
0xdeadbeef
;
hres
=
IHTMLBodyElement_get_background
(
body
,
&
bstr
);
...
...
@@ -3694,7 +3689,7 @@ static void test_default_body(IHTMLBodyElement *body)
hres
=
IHTMLBodyElement_get_text
(
body
,
&
v
);
ok
(
hres
==
S_OK
,
"expect S_OK got 0x%08d
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"Expected VT_BSTR got %d
\n
"
,
V_VT
(
&
v
));
ok
(
!
lstrcmpW
(
sResInvalid
,
V_BSTR
(
&
v
)),
"v != sResInvalid
\n
"
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"#00a0d0"
),
"v != '#00a0d0'
\n
"
);
VariantClear
(
&
v
);
/* get_text - Valid Text */
...
...
@@ -3715,7 +3710,6 @@ static void test_default_body(IHTMLBodyElement *body)
static
void
test_body_funs
(
IHTMLBodyElement
*
body
)
{
static
WCHAR
sRed
[]
=
{
'r'
,
'e'
,
'd'
,
0
};
static
WCHAR
sRedbg
[]
=
{
'#'
,
'f'
,
'f'
,
'0'
,
'0'
,
'0'
,
'0'
,
0
};
VARIANT
vbg
;
VARIANT
vDefaultbg
;
HRESULT
hres
;
...
...
@@ -3733,7 +3727,7 @@ static void test_body_funs(IHTMLBodyElement *body)
hres
=
IHTMLBodyElement_get_bgColor
(
body
,
&
vbg
);
ok
(
hres
==
S_OK
,
"get_bgColor failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
vDefaultbg
)
==
VT_BSTR
,
"V_VT(&vDefaultbg) != VT_BSTR
\n
"
);
ok
(
!
lstrcmpW
(
V_BSTR
(
&
vbg
),
sRedbg
),
"Unexpected type
%s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
vbg
)));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
vbg
),
"#ff0000"
),
"Unexpected bgcolor
%s
\n
"
,
dbgstr_w
(
V_BSTR
(
&
vbg
)));
VariantClear
(
&
vbg
);
/* Restore Originial */
...
...
@@ -4319,7 +4313,7 @@ static void test_elems(IHTMLDocument2 *doc)
hres
=
IHTMLScriptElement_get_type
(
script
,
&
type
);
ok
(
hres
==
S_OK
,
"get_type failed: %08x
\n
"
,
hres
);
ok
(
!
lstrcmpW
(
type
,
text_javascriptW
),
"Unexpected type %s
\n
"
,
dbgstr_w
(
type
));
ok
(
!
strcmp_wa
(
type
,
"text/javascript"
),
"Unexpected type %s
\n
"
,
dbgstr_w
(
type
));
SysFreeString
(
type
);
/* test defer */
...
...
@@ -4733,12 +4727,10 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D
BSTR
state
;
HRESULT
hres
;
static
const
WCHAR
completeW
[]
=
{
'c'
,
'o'
,
'm'
,
'p'
,
'l'
,
'e'
,
't'
,
'e'
,
0
};
hres
=
IHTMLDocument2_get_readyState
(
notif_doc
,
&
state
);
ok
(
hres
==
S_OK
,
"get_readyState failed: %08x
\n
"
,
hres
);
if
(
!
lstrcmpW
(
state
,
completeW
))
if
(
!
strcmp_wa
(
state
,
"complete"
))
doc_complete
=
TRUE
;
SysFreeString
(
state
);
...
...
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