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
939eafcc
Commit
939eafcc
authored
Apr 21, 2017
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 21, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml/tests: Added area element tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
331205d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
4 deletions
+25
-4
dom.c
dlls/mshtml/tests/dom.c
+25
-4
No files found.
dlls/mshtml/tests/dom.c
View file @
939eafcc
...
...
@@ -132,7 +132,8 @@ typedef enum {
ET_NOSCRIPT
,
ET_LINK
,
ET_LABEL
,
ET_BUTTON
ET_BUTTON
,
ET_AREA
}
elem_type_t
;
static
const
IID
*
const
none_iids
[]
=
{
...
...
@@ -221,6 +222,13 @@ static const IID *const button_iids[] = {
NULL
};
static
const
IID
*
const
area_iids
[]
=
{
ELEM_IFACES
,
&
IID_IHTMLAreaElement
,
&
IID_IConnectionPointContainer
,
NULL
};
static
const
IID
*
const
label_iids
[]
=
{
ELEM_IFACES
,
&
IID_IHTMLLabelElement
,
...
...
@@ -491,7 +499,8 @@ static const elem_type_info_t elem_type_infos[] = {
{
"NOSCRIPT"
,
elem_iids
,
NULL
/*&DIID_DispHTMLNoShowElement*/
},
{
"LINK"
,
link_iids
,
&
DIID_DispHTMLLinkElement
},
{
"LABEL"
,
label_iids
,
&
DIID_DispHTMLLabelElement
},
{
"BUTTON"
,
button_iids
,
&
DIID_DispHTMLButtonElement
}
{
"BUTTON"
,
button_iids
,
&
DIID_DispHTMLButtonElement
},
{
"AREA"
,
area_iids
,
&
DIID_DispHTMLAreaElement
}
};
static
int
strcmp_wa
(
LPCWSTR
strw
,
const
char
*
stra
)
...
...
@@ -1137,11 +1146,16 @@ static void _test_elem_tag(unsigned line, IUnknown *unk, const char *extag)
#define test_elem_type(ifc,t) _test_elem_type(__LINE__,ifc,t)
static
void
_test_elem_type
(
unsigned
line
,
IUnknown
*
unk
,
elem_type_t
type
)
{
const
char
*
expected_value
=
"[object]"
;
_test_elem_tag
(
line
,
unk
,
elem_type_infos
[
type
].
tag
);
_test_ifaces
(
line
,
unk
,
elem_type_infos
[
type
].
iids
);
if
(
elem_type_infos
[
type
].
dispiid
&&
type
!=
ET_A
)
_test_disp
(
line
,
unk
,
elem_type_infos
[
type
].
dispiid
,
"[object]"
);
if
(
elem_type_infos
[
type
].
dispiid
&&
type
!=
ET_A
)
{
if
(
type
==
ET_AREA
)
expected_value
=
NULL
;
_test_disp
(
line
,
unk
,
elem_type_infos
[
type
].
dispiid
,
expected_value
);
}
}
#define get_node_type(n) _get_node_type(__LINE__,n)
...
...
@@ -9290,6 +9304,13 @@ static void test_elems2(IHTMLDocument2 *doc)
IHTMLElement_Release
(
elem
);
}
test_elem_set_innerhtml
((
IUnknown
*
)
div
,
"<map><area id=
\"
areaid
\"
></area></map>"
);
elem
=
get_elem_by_id
(
doc
,
"areaid"
,
TRUE
);
if
(
elem
)
{
test_elem_type
((
IUnknown
*
)
elem
,
ET_AREA
);
IHTMLElement_Release
(
elem
);
}
test_td_elem
(
doc
,
div
);
test_attr
(
doc
,
div
);
test_blocked
(
doc
,
div
);
...
...
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