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
366929f1
Commit
366929f1
authored
Aug 28, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 28, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLAnchorElement::get_hash implementation.
parent
774f57ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
htmlanchor.c
dlls/mshtml/htmlanchor.c
+8
-2
dom.c
dlls/mshtml/tests/dom.c
+20
-0
No files found.
dlls/mshtml/htmlanchor.c
View file @
366929f1
...
@@ -466,8 +466,14 @@ static HRESULT WINAPI HTMLAnchorElement_put_hash(IHTMLAnchorElement *iface, BSTR
...
@@ -466,8 +466,14 @@ static HRESULT WINAPI HTMLAnchorElement_put_hash(IHTMLAnchorElement *iface, BSTR
static
HRESULT
WINAPI
HTMLAnchorElement_get_hash
(
IHTMLAnchorElement
*
iface
,
BSTR
*
p
)
static
HRESULT
WINAPI
HTMLAnchorElement_get_hash
(
IHTMLAnchorElement
*
iface
,
BSTR
*
p
)
{
{
HTMLAnchorElement
*
This
=
impl_from_IHTMLAnchorElement
(
iface
);
HTMLAnchorElement
*
This
=
impl_from_IHTMLAnchorElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString
hash_str
;
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
hash_str
,
NULL
);
nsres
=
nsIDOMHTMLAnchorElement_GetHash
(
This
->
nsanchor
,
&
hash_str
);
return
return_nsstr
(
nsres
,
&
hash_str
,
p
);
}
}
static
HRESULT
WINAPI
HTMLAnchorElement_put_onblur
(
IHTMLAnchorElement
*
iface
,
VARIANT
v
)
static
HRESULT
WINAPI
HTMLAnchorElement_put_onblur
(
IHTMLAnchorElement
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
366929f1
...
@@ -1468,6 +1468,22 @@ static void _test_anchor_hostname(unsigned line, IUnknown *unk, const char *host
...
@@ -1468,6 +1468,22 @@ static void _test_anchor_hostname(unsigned line, IUnknown *unk, const char *host
SysFreeString
(
str
);
SysFreeString
(
str
);
}
}
#define test_anchor_hash(a,h) _test_anchor_hash(__LINE__,a,h)
static
void
_test_anchor_hash
(
unsigned
line
,
IHTMLElement
*
elem
,
const
char
*
exhash
)
{
IHTMLAnchorElement
*
anchor
=
_get_anchor_iface
(
line
,
(
IUnknown
*
)
elem
);
BSTR
str
;
HRESULT
hres
;
hres
=
IHTMLAnchorElement_get_hash
(
anchor
,
&
str
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_hash failed: %08x
\n
"
,
hres
);
if
(
exhash
)
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
str
,
exhash
),
"hash = %s, expected %s
\n
"
,
wine_dbgstr_w
(
str
),
exhash
);
else
ok_
(
__FILE__
,
line
)(
!
str
,
"hash = %s, expected NULL
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
}
#define test_option_text(o,t) _test_option_text(__LINE__,o,t)
#define test_option_text(o,t) _test_option_text(__LINE__,o,t)
static
void
_test_option_text
(
unsigned
line
,
IHTMLOptionElement
*
option
,
const
char
*
text
)
static
void
_test_option_text
(
unsigned
line
,
IHTMLOptionElement
*
option
,
const
char
*
text
)
{
{
...
@@ -6380,6 +6396,7 @@ static void test_elems(IHTMLDocument2 *doc)
...
@@ -6380,6 +6396,7 @@ static void test_elems(IHTMLDocument2 *doc)
test_anchor_put_href
((
IUnknown
*
)
elem
,
"http://test/"
);
test_anchor_put_href
((
IUnknown
*
)
elem
,
"http://test/"
);
test_anchor_href
((
IUnknown
*
)
elem
,
"http://test/"
);
test_anchor_href
((
IUnknown
*
)
elem
,
"http://test/"
);
test_anchor_hostname
((
IUnknown
*
)
elem
,
"test"
);
test_anchor_hostname
((
IUnknown
*
)
elem
,
"test"
);
test_anchor_hash
(
elem
,
NULL
);
/* target */
/* target */
test_anchor_get_target
((
IUnknown
*
)
elem
,
NULL
);
test_anchor_get_target
((
IUnknown
*
)
elem
,
NULL
);
...
@@ -6401,6 +6418,9 @@ static void test_elems(IHTMLDocument2 *doc)
...
@@ -6401,6 +6418,9 @@ static void test_elems(IHTMLDocument2 *doc)
test_anchor_put_name
((
IUnknown
*
)
elem
,
NULL
);
test_anchor_put_name
((
IUnknown
*
)
elem
,
NULL
);
test_anchor_put_name
((
IUnknown
*
)
elem
,
"x"
);
test_anchor_put_name
((
IUnknown
*
)
elem
,
"x"
);
test_anchor_put_href
((
IUnknown
*
)
elem
,
"http://test/#hash"
);
test_anchor_hash
(
elem
,
"#hash"
);
IHTMLElement_Release
(
elem
);
IHTMLElement_Release
(
elem
);
}
}
...
...
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