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
02e0d91c
Commit
02e0d91c
authored
Sep 02, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Added attributes tests on comment node.
parent
13701221
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
dom.c
dlls/mshtml/tests/dom.c
+32
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
02e0d91c
...
...
@@ -1427,6 +1427,37 @@ static void _test_comment_text(unsigned line, IUnknown *unk, const char *extext)
SysFreeString
(
text
);
}
#define test_comment_attrs(c) _test_comment_attrs(__LINE__,c)
static
void
_test_comment_attrs
(
unsigned
line
,
IUnknown
*
unk
)
{
IHTMLCommentElement
*
comment
=
_get_comment_iface
(
__LINE__
,
unk
);
IHTMLElement
*
elem
=
_get_elem_iface
(
__LINE__
,
unk
);
IHTMLElement4
*
elem4
=
_get_elem4_iface
(
__LINE__
,
unk
);
IHTMLDOMAttribute
*
attr
;
BSTR
name
=
a2bstr
(
"test"
);
VARIANT
val
;
HRESULT
hres
;
hres
=
IHTMLElement4_getAttributeNode
(
elem4
,
name
,
&
attr
);
ok
(
hres
==
S_OK
,
"getAttributeNode failed: %08x
\n
"
,
hres
);
ok
(
attr
==
NULL
,
"attr != NULL
\n
"
);
V_VT
(
&
val
)
=
VT_I4
;
V_I4
(
&
val
)
=
1234
;
hres
=
IHTMLElement_setAttribute
(
elem
,
name
,
val
,
0
);
ok
(
hres
==
S_OK
,
"setAttribute failed: %08x
\n
"
,
hres
);
hres
=
IHTMLElement4_getAttributeNode
(
elem4
,
name
,
&
attr
);
ok
(
hres
==
S_OK
,
"getAttributeNode failed: %08x
\n
"
,
hres
);
ok
(
attr
!=
NULL
,
"attr == NULL
\n
"
);
IHTMLDOMAttribute_Release
(
attr
);
IHTMLCommentElement_Release
(
comment
);
IHTMLElement_Release
(
elem
);
IHTMLElement4_Release
(
elem
);
SysFreeString
(
name
);
}
#define test_object_vspace(u,s) _test_object_vspace(__LINE__,u,s)
static
void
_test_object_vspace
(
unsigned
line
,
IUnknown
*
unk
,
LONG
exl
)
{
...
...
@@ -5412,6 +5443,7 @@ static void test_create_elems(IHTMLDocument2 *doc)
test_elem_title
((
IUnknown
*
)
comment
,
"comment title"
);
test_comment_text
((
IUnknown
*
)
comment
,
"<!--testing-->"
);
test_elem_outerhtml
((
IUnknown
*
)
comment
,
"<!--testing-->"
);
test_comment_attrs
((
IUnknown
*
)
comment
);
IHTMLDOMNode_Release
(
comment
);
}
...
...
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