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
b019f565
Commit
b019f565
authored
May 02, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
May 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLAnchorElement::rel property tests.
parent
ca1f4c44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
dom.c
dlls/mshtml/tests/dom.c
+33
-0
No files found.
dlls/mshtml/tests/dom.c
View file @
b019f565
...
...
@@ -1352,6 +1352,35 @@ static void _test_anchor_put_href(unsigned line, IUnknown *unk, const char *exhr
_test_disp_value
(
line
,
unk
,
exhref
);
}
#define test_anchor_rel(a,h) _test_anchor_rel(__LINE__,a,h)
static
void
_test_anchor_rel
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
exrel
)
{
IHTMLAnchorElement
*
anchor
=
_get_anchor_iface
(
line
,
unk
);
BSTR
str
;
HRESULT
hres
;
hres
=
IHTMLAnchorElement_get_rel
(
anchor
,
&
str
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_rel failed: %08x
\n
"
,
hres
);
if
(
exrel
)
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
str
,
exrel
),
"rel = %s, expected %s
\n
"
,
wine_dbgstr_w
(
str
),
exrel
);
else
ok_
(
__FILE__
,
line
)(
!
str
,
"rel = %s, expected NULL
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
}
#define test_anchor_put_rel(a,h) _test_anchor_put_rel(__LINE__,a,h)
static
void
_test_anchor_put_rel
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
exrel
)
{
IHTMLAnchorElement
*
anchor
=
_get_anchor_iface
(
line
,
unk
);
BSTR
str
;
HRESULT
hres
;
str
=
a2bstr
(
exrel
);
hres
=
IHTMLAnchorElement_put_rel
(
anchor
,
str
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_rel failed: %08x
\n
"
,
hres
);
SysFreeString
(
str
);
}
#define test_anchor_get_target(a,h) _test_anchor_get_target(__LINE__,a,h)
static
void
_test_anchor_get_target
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
target
)
{
...
...
@@ -6256,6 +6285,10 @@ static void test_elems(IHTMLDocument2 *doc)
/* target */
test_anchor_get_target
((
IUnknown
*
)
elem
,
NULL
);
test_anchor_rel
((
IUnknown
*
)
elem
,
NULL
);
test_anchor_put_rel
((
IUnknown
*
)
elem
,
"Next"
);
test_anchor_rel
((
IUnknown
*
)
elem
,
"Next"
);
/* Change the target */
test_anchor_put_target
((
IUnknown
*
)
elem
,
"wine"
);
test_anchor_get_target
((
IUnknown
*
)
elem
,
"wine"
);
...
...
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