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
b73f9d2e
Commit
b73f9d2e
authored
Nov 25, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDOMAttribute2::put_value implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2056de01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
htmlattr.c
dlls/mshtml/htmlattr.c
+7
-2
dom.c
dlls/mshtml/tests/dom.c
+25
-0
No files found.
dlls/mshtml/htmlattr.c
View file @
b73f9d2e
...
...
@@ -296,8 +296,13 @@ static HRESULT WINAPI HTMLDOMAttribute2_get_name(IHTMLDOMAttribute2 *iface, BSTR
static
HRESULT
WINAPI
HTMLDOMAttribute2_put_value
(
IHTMLDOMAttribute2
*
iface
,
BSTR
v
)
{
HTMLDOMAttribute
*
This
=
impl_from_IHTMLDOMAttribute2
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
return
E_NOTIMPL
;
VARIANT
var
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
v
));
V_VT
(
&
var
)
=
VT_BSTR
;
V_BSTR
(
&
var
)
=
v
;
return
IHTMLDOMAttribute_put_nodeValue
(
&
This
->
IHTMLDOMAttribute_iface
,
var
);
}
static
HRESULT
WINAPI
HTMLDOMAttribute2_get_value
(
IHTMLDOMAttribute2
*
iface
,
BSTR
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
b73f9d2e
...
...
@@ -4762,6 +4762,20 @@ static void _put_attr_node_value(unsigned line, IHTMLDOMAttribute *attr, VARIANT
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"put_nodeValue failed: %08x
\n
"
,
hres
);
}
#define put_attr_value(a,b) _put_attr_value(__LINE__,a,b)
static
void
_put_attr_value
(
unsigned
line
,
IHTMLDOMAttribute
*
attr
,
const
char
*
value
)
{
IHTMLDOMAttribute2
*
attr2
=
_get_attr2_iface
(
line
,
(
IUnknown
*
)
attr
);
BSTR
str
=
a2bstr
(
value
);
HRESULT
hres
;
hres
=
IHTMLDOMAttribute2_put_value
(
attr2
,
str
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"put_nodeValue failed: %08x
\n
"
,
hres
);
IHTMLDOMAttribute2_Release
(
attr2
);
SysFreeString
(
str
);
}
#define get_window_doc(e) _get_window_doc(__LINE__,e)
static
IHTMLDocument2
*
_get_window_doc
(
unsigned
line
,
IHTMLWindow2
*
window
)
{
...
...
@@ -8385,6 +8399,12 @@ static void test_attr(IHTMLElement *elem)
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"divid2"
),
"V_BSTR(v) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
put_attr_value
(
attr
,
"divid3"
);
get_attr_node_value
(
attr
,
&
v
,
VT_BSTR
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"divid3"
),
"V_BSTR(v) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
IHTMLDOMAttribute_Release
(
attr
);
attr
=
get_elem_attr_node
((
IUnknown
*
)
elem
,
"emptyattr"
,
TRUE
);
...
...
@@ -8420,6 +8440,11 @@ static void test_attr(IHTMLElement *elem)
get_attr_node_value
(
attr
,
&
v
,
VT_I4
);
ok
(
V_I4
(
&
v
)
==
150
,
"V_I4(v) = %d
\n
"
,
V_I4
(
&
v
));
put_attr_value
(
attr
,
"160"
);
get_attr_node_value
(
attr
,
&
v
,
VT_BSTR
);
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"160"
),
"V_BSTR(v) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
IHTMLDOMAttribute_Release
(
attr
);
attr
=
get_elem_attr_node
((
IUnknown
*
)
elem
,
"tabIndex"
,
TRUE
);
...
...
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