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
4e913b95
Commit
4e913b95
authored
Apr 28, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLInputElement::get_disabled implementation.
parent
deeaa5d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
3 deletions
+35
-3
htmlinput.c
dlls/mshtml/htmlinput.c
+8
-2
dom.c
dlls/mshtml/tests/dom.c
+27
-1
No files found.
dlls/mshtml/htmlinput.c
View file @
4e913b95
...
...
@@ -223,8 +223,14 @@ static HRESULT WINAPI HTMLInputElement_put_disabled(IHTMLInputElement *iface, VA
static
HRESULT
WINAPI
HTMLInputElement_get_disabled
(
IHTMLInputElement
*
iface
,
VARIANT_BOOL
*
p
)
{
HTMLInputElement
*
This
=
HTMLINPUT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
PRBool
disabled
=
FALSE
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsIDOMHTMLInputElement_GetDisabled
(
This
->
nsinput
,
&
disabled
);
*
p
=
disabled
?
VARIANT_TRUE
:
VARIANT_FALSE
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLInputElement_get_form
(
IHTMLInputElement
*
iface
,
IHTMLFormElement
**
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
4e913b95
...
...
@@ -40,7 +40,8 @@ static const char range_test2_str[] =
"<html><body>abc<hr />123<br /><hr />def</body></html>"
;
static
const
char
elem_test_str
[]
=
"<html><head><title>test</title><style>.body { margin-right: 0px; }</style>"
"<body>text test<a href=
\"
http://test
\"
name=
\"
x
\"
>link</a><input />"
"<body>text test<a href=
\"
http://test
\"
name=
\"
x
\"
>link</a>"
"<input id=
\"
in
\"
/>"
"<select id=
\"
s
\"
><option id=
\"
x
\"
>opt1</option><option id=
\"
y
\"
>opt2</option></select>"
"<textarea id=
\"
X
\"
>text text</textarea>"
"<table><tbody></tbody></table>"
...
...
@@ -783,6 +784,17 @@ static long _get_node_type(unsigned line, IUnknown *unk)
return
type
;
}
#define test_input_get_disabled(i,b) _test_input_get_disabled(__LINE__,i,b)
static
void
_test_input_get_disabled
(
unsigned
line
,
IHTMLInputElement
*
input
,
VARIANT_BOOL
exb
)
{
VARIANT_BOOL
disabled
=
100
;
HRESULT
hres
;
hres
=
IHTMLInputElement_get_disabled
(
input
,
&
disabled
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_disabled failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
disabled
==
exb
,
"disabled=%x, expected %x
\n
"
,
disabled
,
exb
);
}
static
void
test_elem_col_item
(
IHTMLElementCollection
*
col
,
LPCWSTR
n
,
const
elem_type_t
*
elem_types
,
long
len
)
{
...
...
@@ -1429,6 +1441,7 @@ static void test_elems(IHTMLDocument2 *doc)
long
type
;
HRESULT
hres
;
static
const
WCHAR
inW
[]
=
{
'i'
,
'n'
,
0
};
static
const
WCHAR
xW
[]
=
{
'x'
,
0
};
static
const
WCHAR
sW
[]
=
{
's'
,
0
};
static
const
WCHAR
scW
[]
=
{
's'
,
'c'
,
0
};
...
...
@@ -1528,6 +1541,19 @@ static void test_elems(IHTMLDocument2 *doc)
IHTMLScriptElement_Release
(
script
);
}
elem
=
get_elem_by_id
(
doc
,
inW
,
TRUE
);
if
(
elem
)
{
IHTMLInputElement
*
input
;
hres
=
IHTMLElement_QueryInterface
(
elem
,
&
IID_IHTMLInputElement
,
(
void
**
)
&
input
);
ok
(
hres
==
S_OK
,
"Could not get IHTMLInputElement: %08x
\n
"
,
hres
);
test_input_get_disabled
(
input
,
VARIANT_FALSE
);
IHTMLInputElement_Release
(
input
);
IHTMLElement_Release
(
elem
);
}
hres
=
IHTMLDocument2_get_body
(
doc
,
&
elem
);
ok
(
hres
==
S_OK
,
"get_body failed: %08x
\n
"
,
hres
);
...
...
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