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
5f7a55f8
Commit
5f7a55f8
authored
Jun 16, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLButtonElement::get_type implementation.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e4fa65d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
htmlinput.c
dlls/mshtml/htmlinput.c
+8
-2
dom.c
dlls/mshtml/tests/dom.c
+17
-1
No files found.
dlls/mshtml/htmlinput.c
View file @
5f7a55f8
...
...
@@ -1621,8 +1621,14 @@ static HRESULT WINAPI HTMLButtonElement_Invoke(IHTMLButtonElement *iface, DISPID
static
HRESULT
WINAPI
HTMLButtonElement_get_type
(
IHTMLButtonElement
*
iface
,
BSTR
*
p
)
{
HTMLButtonElement
*
This
=
impl_from_IHTMLButtonElement
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
type_str
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
type_str
,
NULL
);
nsres
=
nsIDOMHTMLButtonElement_GetType
(
This
->
nsbutton
,
&
type_str
);
return
return_nsstr
(
nsres
,
&
type_str
,
p
);
}
static
HRESULT
WINAPI
HTMLButtonElement_put_value
(
IHTMLButtonElement
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
5f7a55f8
...
...
@@ -54,7 +54,7 @@ static const char elem_test_str[] =
"<a id=
\"
a
\"
href=
\"
http://test
\"
name=
\"
x
\"
>link</a>"
"<label for=
\"
in
\"
id=
\"
labelid
\"
>Label:</label>"
"<input id=
\"
in
\"
class=
\"
testclass
\"
tabIndex=
\"
2
\"
title=
\"
test title
\"
/>"
"<button id=
\"
btnid
\"
></button>"
"<button id=
\"
btnid
\"
type=
\"
submit
\"
></button>"
"<select id=
\"
s
\"
><option id=
\"
x
\"
value=
\"
val1
\"
>opt1</option><option id=
\"
y
\"
>opt2</option></select>"
"<textarea id=
\"
X
\"
>text text</textarea>"
"<table id=
\"
tbl
\"
><tbody><tr></tr><tr id=
\"
row2
\"
><td id=
\"
td1
\"
>td1 text</td><td id=
\"
td2
\"
>td2 text</td></tr></tbody></table>"
...
...
@@ -6929,10 +6929,26 @@ static void _test_button_set_disabled(unsigned line, IHTMLElement *elem, VARIANT
_test_button_get_disabled
(
line
,
elem
,
b
);
}
#define test_button_type(a,b) _test_button_type(__LINE__,a,b)
static
void
_test_button_type
(
unsigned
line
,
IHTMLElement
*
elem
,
const
char
*
extype
)
{
IHTMLButtonElement
*
button
=
_get_button_iface
(
line
,
(
IUnknown
*
)
elem
);
BSTR
str
;
HRESULT
hres
;
hres
=
IHTMLButtonElement_get_type
(
button
,
&
str
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_type failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
str
,
extype
),
"type = %s, expected %s
\n
"
,
wine_dbgstr_w
(
str
),
extype
);
SysFreeString
(
str
);
IHTMLButtonElement_Release
(
button
);
}
static
void
test_button_elem
(
IHTMLElement
*
elem
)
{
test_button_name
(
elem
,
NULL
);
set_button_name
(
elem
,
"button name"
);
test_button_type
(
elem
,
"submit"
);
test_elem_istextedit
(
elem
,
VARIANT_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