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
9338979c
Commit
9338979c
authored
Jun 24, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLInputElement::put_disabled implementation.
parent
6314becd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
htmlinput.c
dlls/mshtml/htmlinput.c
+9
-2
dom.c
dlls/mshtml/tests/dom.c
+13
-0
No files found.
dlls/mshtml/htmlinput.c
View file @
9338979c
...
...
@@ -226,8 +226,15 @@ static HRESULT WINAPI HTMLInputElement_get_status(IHTMLInputElement *iface, VARI
static
HRESULT
WINAPI
HTMLInputElement_put_disabled
(
IHTMLInputElement
*
iface
,
VARIANT_BOOL
v
)
{
HTMLInputElement
*
This
=
HTMLINPUT_THIS
(
iface
);
FIXME
(
"(%p)->(%x)
\n
"
,
This
,
v
);
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%x)
\n
"
,
This
,
v
);
nsres
=
nsIDOMHTMLInputElement_SetDisabled
(
This
->
nsinput
,
v
!=
VARIANT_FALSE
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetDisabled failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLInputElement_get_disabled
(
IHTMLInputElement
*
iface
,
VARIANT_BOOL
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
9338979c
...
...
@@ -919,6 +919,17 @@ static void _test_input_get_disabled(unsigned line, IHTMLInputElement *input, VA
ok_
(
__FILE__
,
line
)
(
disabled
==
exb
,
"disabled=%x, expected %x
\n
"
,
disabled
,
exb
);
}
#define test_input_set_disabled(i,b) _test_input_set_disabled(__LINE__,i,b)
static
void
_test_input_set_disabled
(
unsigned
line
,
IHTMLInputElement
*
input
,
VARIANT_BOOL
b
)
{
HRESULT
hres
;
hres
=
IHTMLInputElement_put_disabled
(
input
,
b
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_disabled failed: %08x
\n
"
,
hres
);
_test_input_get_disabled
(
line
,
input
,
b
);
}
#define test_input_value(o,t) _test_input_value(__LINE__,o,t)
static
void
_test_input_value
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
exval
)
{
...
...
@@ -2062,6 +2073,8 @@ static void test_elems(IHTMLDocument2 *doc)
test_elem_id
((
IUnknown
*
)
elem
,
"in"
);
test_elem_put_id
((
IUnknown
*
)
elem
,
"newin"
);
test_input_get_disabled
(
input
,
VARIANT_FALSE
);
test_input_set_disabled
(
input
,
VARIANT_TRUE
);
test_input_set_disabled
(
input
,
VARIANT_FALSE
);
test_elem_client_size
((
IUnknown
*
)
elem
);
test_node_get_value_str
((
IUnknown
*
)
elem
,
NULL
);
...
...
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