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
1d6c2845
Commit
1d6c2845
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 IHTMLSelectElement::get_type implementation.
parent
9338979c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
htmlselect.c
dlls/mshtml/htmlselect.c
+20
-2
dom.c
dlls/mshtml/tests/dom.c
+12
-0
No files found.
dlls/mshtml/htmlselect.c
View file @
1d6c2845
...
...
@@ -223,8 +223,26 @@ static HRESULT WINAPI HTMLSelectElement_get_selectedIndex(IHTMLSelectElement *if
static
HRESULT
WINAPI
HTMLSelectElement_get_type
(
IHTMLSelectElement
*
iface
,
BSTR
*
p
)
{
HTMLSelectElement
*
This
=
HTMLSELECT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
const
PRUnichar
*
type
;
nsAString
type_str
;
nsresult
nsres
;
HRESULT
hres
=
S_OK
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
type_str
,
NULL
);
nsres
=
nsIDOMHTMLSelectElement_GetType
(
This
->
nsselect
,
&
type_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
type_str
,
&
type
);
*
p
=
*
type
?
SysAllocString
(
type
)
:
NULL
;
}
else
{
ERR
(
"GetType failed: %08x
\n
"
,
nsres
);
hres
=
E_FAIL
;
}
nsAString_Finish
(
&
type_str
);
return
hres
;
}
static
HRESULT
WINAPI
HTMLSelectElement_put_value
(
IHTMLSelectElement
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
1d6c2845
...
...
@@ -656,6 +656,17 @@ static void _test_select_set_value(unsigned line, IHTMLSelectElement *select, co
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"put_value failed: %08x
\n
"
,
hres
);
}
#define test_select_type(s,t) _test_select_type(__LINE__,s,t)
static
void
_test_select_type
(
unsigned
line
,
IHTMLSelectElement
*
select
,
const
char
*
extype
)
{
BSTR
type
;
HRESULT
hres
;
hres
=
IHTMLSelectElement_get_type
(
select
,
&
type
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_type failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)
(
!
strcmp_wa
(
type
,
extype
),
"type=%s, expected %s
\n
"
,
dbgstr_w
(
type
),
extype
);
}
#define test_range_text(r,t) _test_range_text(__LINE__,r,t)
static
void
_test_range_text
(
unsigned
line
,
IHTMLTxtRange
*
range
,
const
char
*
extext
)
{
...
...
@@ -1368,6 +1379,7 @@ static IHTMLElement *get_doc_elem_by_id(IHTMLDocument2 *doc, LPCWSTR id)
static
void
test_select_elem
(
IHTMLSelectElement
*
select
)
{
test_select_type
(
select
,
"select-one"
);
test_select_length
(
select
,
2
);
test_select_selidx
(
select
,
0
);
test_select_put_selidx
(
select
,
1
);
...
...
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