Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d734935a
Commit
d734935a
authored
Jul 17, 2014
by
Zhenbo Li
Committed by
Alexandre Julliard
Jul 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLFormElement::reset method implementation.
parent
1b1ea639
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
htmlform.c
dlls/mshtml/htmlform.c
+10
-2
dom.c
dlls/mshtml/tests/dom.c
+12
-0
No files found.
dlls/mshtml/htmlform.c
View file @
d734935a
...
...
@@ -436,8 +436,16 @@ static HRESULT WINAPI HTMLFormElement_submit(IHTMLFormElement *iface)
static
HRESULT
WINAPI
HTMLFormElement_reset
(
IHTMLFormElement
*
iface
)
{
HTMLFormElement
*
This
=
impl_from_IHTMLFormElement
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)->()
\n
"
,
This
);
nsres
=
nsIDOMHTMLFormElement_Reset
(
This
->
nsform
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"Reset failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLFormElement_put_length
(
IHTMLFormElement
*
iface
,
LONG
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
d734935a
...
...
@@ -3764,6 +3764,17 @@ static void _test_form_elements(unsigned line, IUnknown *unk)
IHTMLFormElement_Release
(
form
);
}
#define test_form_reset(a) _test_form_reset(__LINE__,a)
static
void
_test_form_reset
(
unsigned
line
,
IUnknown
*
unk
)
{
IHTMLFormElement
*
form
=
_get_form_iface
(
line
,
unk
);
HRESULT
hres
;
hres
=
IHTMLFormElement_reset
(
form
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"reset failed: %08x
\n
"
,
hres
);
IHTMLFormElement_Release
(
form
);
}
#define test_meta_name(a,b) _test_meta_name(__LINE__,a,b)
static
void
_test_meta_name
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
exname
)
{
...
...
@@ -7330,6 +7341,7 @@ static void test_elems2(IHTMLDocument2 *doc)
test_form_put_encoding
((
IUnknown
*
)
elem
,
E_INVALIDARG
,
"image/png"
);
test_form_encoding
((
IUnknown
*
)
elem
,
"multipart/form-data"
);
test_form_elements
((
IUnknown
*
)
elem
);
test_form_reset
((
IUnknown
*
)
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