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
21d7f6a7
Commit
21d7f6a7
authored
Apr 29, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLSelectElement::get_options implementation.
parent
78cf4e30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
htmlselect.c
dlls/mshtml/htmlselect.c
+6
-2
dom.c
dlls/mshtml/tests/dom.c
+11
-1
No files found.
dlls/mshtml/htmlselect.c
View file @
21d7f6a7
...
...
@@ -170,8 +170,12 @@ static HRESULT WINAPI HTMLSelectElement_get_name(IHTMLSelectElement *iface, BSTR
static
HRESULT
WINAPI
HTMLSelectElement_get_options
(
IHTMLSelectElement
*
iface
,
IDispatch
**
p
)
{
HTMLSelectElement
*
This
=
HTMLSELECT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
(
IDispatch
*
)
HTMLSELECT
(
This
);
IDispatch_AddRef
(
*
p
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLSelectElement_put_onchange
(
IHTMLSelectElement
*
iface
,
VARIANT
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
21d7f6a7
...
...
@@ -508,7 +508,7 @@ static void _test_ifaces(unsigned line, IUnknown *iface, REFIID *iids)
}
}
#define test_get_dispid(u,id) _test_
disp
(__LINE__,u,id)
#define test_get_dispid(u,id) _test_
get_dispid
(__LINE__,u,id)
static
BOOL
_test_get_dispid
(
unsigned
line
,
IUnknown
*
unk
,
IID
*
iid
)
{
IDispatchEx
*
dispex
;
...
...
@@ -2776,6 +2776,9 @@ static IHTMLElement *get_doc_elem_by_id(IHTMLDocument2 *doc, const char *id)
static
void
test_select_elem
(
IHTMLSelectElement
*
select
)
{
IDispatch
*
disp
;
HRESULT
hres
;
test_select_type
(
select
,
"select-one"
);
test_select_length
(
select
,
2
);
test_select_selidx
(
select
,
0
);
...
...
@@ -2787,6 +2790,13 @@ static void test_select_elem(IHTMLSelectElement *select)
test_select_get_disabled
(
select
,
VARIANT_FALSE
);
test_select_set_disabled
(
select
,
VARIANT_TRUE
);
test_select_set_disabled
(
select
,
VARIANT_FALSE
);
disp
=
NULL
;
hres
=
IHTMLSelectElement_get_options
(
select
,
&
disp
);
ok
(
hres
==
S_OK
,
"get_options failed: %08x
\n
"
,
hres
);
ok
(
disp
!=
NULL
,
"options == NULL
\n
"
);
ok
(
iface_cmp
((
IUnknown
*
)
disp
,
(
IUnknown
*
)
select
),
"disp != select
\n
"
);
IDispatch_Release
(
disp
);
}
static
void
test_create_option_elem
(
IHTMLDocument2
*
doc
)
...
...
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