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
62428749
Commit
62428749
authored
Feb 28, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Fixed typos in IHTMLInputElement::value tests.
parent
35d5c075
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
htmlinput.c
dlls/mshtml/htmlinput.c
+1
-13
dom.c
dlls/mshtml/tests/dom.c
+8
-3
No files found.
dlls/mshtml/htmlinput.c
View file @
62428749
...
...
@@ -178,25 +178,13 @@ static HRESULT WINAPI HTMLInputElement_get_value(IHTMLInputElement *iface, BSTR
{
HTMLInputElement
*
This
=
impl_from_IHTMLInputElement
(
iface
);
nsAString
value_str
;
const
PRUnichar
*
value
=
NULL
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
value_str
,
NULL
);
nsres
=
nsIDOMHTMLInputElement_GetValue
(
This
->
nsinput
,
&
value_str
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsAString_GetData
(
&
value_str
,
&
value
);
*
p
=
SysAllocString
(
value
);
}
else
{
ERR
(
"GetValue failed: %08x
\n
"
,
nsres
);
}
nsAString_Finish
(
&
value_str
);
TRACE
(
"value=%s
\n
"
,
debugstr_w
(
*
p
));
return
S_OK
;
return
return_nsstr
(
nsres
,
&
value_str
,
p
);
}
static
HRESULT
WINAPI
HTMLInputElement_put_name
(
IHTMLInputElement
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/tests/dom.c
View file @
62428749
...
...
@@ -414,6 +414,9 @@ static BSTR a2bstr(const char *str)
BSTR
ret
;
int
len
;
if
(
!
str
)
return
NULL
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
NULL
,
0
);
ret
=
SysAllocStringLen
(
NULL
,
len
);
MultiByteToWideChar
(
CP_ACP
,
0
,
str
,
-
1
,
ret
,
len
);
...
...
@@ -2306,7 +2309,7 @@ static void _test_input_value(unsigned line, IUnknown *unk, const char *exval)
if
(
exval
)
ok_
(
__FILE__
,
line
)
(
!
strcmp_wa
(
bstr
,
exval
),
"value=%s
\n
"
,
wine_dbgstr_w
(
bstr
));
else
ok_
(
__FILE__
,
line
)
(
!
exval
,
"exval != NULL
\n
"
);
ok_
(
__FILE__
,
line
)
(
!
bstr
,
"exval != NULL
\n
"
);
SysFreeString
(
bstr
);
IHTMLInputElement_Release
(
input
);
}
...
...
@@ -2324,10 +2327,12 @@ static void _test_input_put_value(unsigned line, IUnknown *unk, const char *val)
return
;
bstr
=
a2bstr
(
val
);
hres
=
IHTMLInputElement_
get_value
(
input
,
&
bstr
);
hres
=
IHTMLInputElement_
put_value
(
input
,
bstr
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"get_value failed: %08x
\n
"
,
hres
);
SysFreeString
(
bstr
);
IHTMLInputElement_Release
(
input
);
_test_input_value
(
line
,
unk
,
val
);
}
#define test_input_src(i,s) _test_input_src(__LINE__,i,s)
...
...
@@ -3101,6 +3106,7 @@ static void _test_border_styles(unsigned line, IHTMLStyle *pStyle, BSTR Name)
hres
=
IHTMLStyle_Invoke
(
pStyle
,
dispid
,
&
IID_NULL
,
LOCALE_SYSTEM_DEFAULT
,
DISPATCH_PROPERTYPUT
,
&
params
,
&
ret
,
NULL
,
NULL
);
ok_
(
__FILE__
,
line
)
(
hres
==
S_OK
,
"default. ret: %08x
\n
"
,
hres
);
VariantClear
(
&
vDefault
);
}
}
...
...
@@ -6427,7 +6433,6 @@ static void test_elems(IHTMLDocument2 *doc)
test_node_get_value_str
((
IUnknown
*
)
elem
,
NULL
);
test_input_value
((
IUnknown
*
)
elem
,
NULL
);
test_input_put_value
((
IUnknown
*
)
elem
,
"test"
);
test_input_value
((
IUnknown
*
)
elem
,
NULL
);
test_elem_class
((
IUnknown
*
)
elem
,
"testclass"
);
test_elem_tabindex
((
IUnknown
*
)
elem
,
2
);
test_elem_set_tabindex
((
IUnknown
*
)
elem
,
3
);
...
...
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