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
44ef1c9b
Commit
44ef1c9b
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: Correct another test.
parent
8a784a5e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dom.c
dlls/mshtml/tests/dom.c
+4
-2
No files found.
dlls/mshtml/tests/dom.c
View file @
44ef1c9b
...
...
@@ -3688,12 +3688,13 @@ static void test_default_body(IHTMLBodyElement *body)
V_BSTR
(
&
v
)
=
SysAllocString
(
sTextInvalid
);
hres
=
IHTMLBodyElement_put_text
(
body
,
v
);
ok
(
hres
==
S_OK
,
"expect S_OK got 0x%08d
\n
"
,
hres
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_NULL
;
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
)),
"
bstr
!= sResInvalid
\n
"
);
ok
(
!
lstrcmpW
(
sResInvalid
,
V_BSTR
(
&
v
)),
"
v
!= sResInvalid
\n
"
);
VariantClear
(
&
v
);
/* get_text - Valid Text */
...
...
@@ -3701,12 +3702,13 @@ static void test_default_body(IHTMLBodyElement *body)
V_BSTR
(
&
v
)
=
SysAllocString
(
sBodyText
);
hres
=
IHTMLBodyElement_put_text
(
body
,
v
);
ok
(
hres
==
S_OK
,
"expect S_OK got 0x%08d
\n
"
,
hres
);
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_NULL
;
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
(
bstr
,
V_BSTR
(
&
v
)),
"bstr != V_BSTR(&v)
\n
"
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"#ff0000"
),
"v != '#ff0000'
\n
"
);
VariantClear
(
&
v
);
}
...
...
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