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
90edfe08
Commit
90edfe08
authored
Oct 28, 2010
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLTextAreaElement_get_type implementation.
parent
ac7e096c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
htmltextarea.c
dlls/mshtml/htmltextarea.c
+9
-2
dom.c
dlls/mshtml/tests/dom.c
+15
-0
No files found.
dlls/mshtml/htmltextarea.c
View file @
90edfe08
...
...
@@ -97,9 +97,16 @@ static HRESULT WINAPI HTMLTextAreaElement_Invoke(IHTMLTextAreaElement *iface, DI
static
HRESULT
WINAPI
HTMLTextAreaElement_get_type
(
IHTMLTextAreaElement
*
iface
,
BSTR
*
p
)
{
static
const
WCHAR
textareaW
[]
=
{
't'
,
'e'
,
'x'
,
't'
,
'a'
,
'r'
,
'e'
,
'a'
,
0
};
HTMLTextAreaElement
*
This
=
HTMLTXTAREA_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
SysAllocString
(
textareaW
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTextAreaElement_put_value
(
IHTMLTextAreaElement
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
90edfe08
...
...
@@ -1240,6 +1240,20 @@ static void _test_textarea_put_readonly(unsigned line, IUnknown *unk, VARIANT_BO
_test_textarea_readonly
(
line
,
unk
,
b
);
}
#define test_textarea_type(t) _test_textarea_type(__LINE__,t)
static
void
_test_textarea_type
(
unsigned
line
,
IUnknown
*
unk
)
{
IHTMLTextAreaElement
*
textarea
=
_get_textarea_iface
(
line
,
unk
);
BSTR
type
=
(
void
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
IHTMLTextAreaElement_get_type
(
textarea
,
&
type
);
IHTMLTextAreaElement_Release
(
textarea
);
ok_
(
__FILE__
,
line
)(
hres
==
S_OK
,
"get_type failed: %08x
\n
"
,
hres
);
ok_
(
__FILE__
,
line
)(
!
strcmp_wa
(
type
,
"textarea"
),
"type = %s, expected textarea
\n
"
,
wine_dbgstr_w
(
type
));
SysFreeString
(
type
);
}
#define test_comment_text(c,t) _test_comment_text(__LINE__,c,t)
static
void
_test_comment_text
(
unsigned
line
,
IUnknown
*
unk
,
const
char
*
extext
)
{
...
...
@@ -6380,6 +6394,7 @@ static void test_elems2(IHTMLDocument2 *doc)
test_textarea_readonly
((
IUnknown
*
)
elem
,
VARIANT_FALSE
);
test_textarea_put_readonly
((
IUnknown
*
)
elem
,
VARIANT_TRUE
);
test_textarea_put_readonly
((
IUnknown
*
)
elem
,
VARIANT_FALSE
);
test_textarea_type
((
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