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
d9a661e2
Commit
d9a661e2
authored
Sep 02, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added more IHTMLElement_{put, get}_onclick tests.
parent
9b26776f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
events.c
dlls/mshtml/tests/events.c
+14
-0
No files found.
dlls/mshtml/tests/events.c
View file @
d9a661e2
...
@@ -1437,6 +1437,20 @@ static void test_onclick(IHTMLDocument2 *doc)
...
@@ -1437,6 +1437,20 @@ static void test_onclick(IHTMLDocument2 *doc)
hres
=
IHTMLElement_put_onclick
(
div
,
v
);
hres
=
IHTMLElement_put_onclick
(
div
,
v
);
ok
(
hres
==
E_NOTIMPL
,
"put_onclick failed: %08x
\n
"
,
hres
);
ok
(
hres
==
E_NOTIMPL
,
"put_onclick failed: %08x
\n
"
,
hres
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
a2bstr
(
"function();"
);
hres
=
IHTMLElement_put_onclick
(
div
,
v
);
todo_wine
ok
(
hres
==
S_OK
,
"put_onclick failed: %08x
\n
"
,
hres
);
if
(
hres
==
S_OK
)
{
V_VT
(
&
v
)
=
VT_EMPTY
;
hres
=
IHTMLElement_get_onclick
(
div
,
&
v
);
ok
(
hres
==
S_OK
,
"get_onclick failed: %08x
\n
"
,
hres
);
ok
(
V_VT
(
&
v
)
==
VT_BSTR
,
"V_VT(onclick) = %d
\n
"
,
V_VT
(
&
v
));
ok
(
!
strcmp_wa
(
V_BSTR
(
&
v
),
"function();"
),
"V_BSTR(onclick) = %s
\n
"
,
wine_dbgstr_w
(
V_BSTR
(
&
v
)));
}
VariantClear
(
&
v
);
V_VT
(
&
v
)
=
VT_DISPATCH
;
V_VT
(
&
v
)
=
VT_DISPATCH
;
V_DISPATCH
(
&
v
)
=
(
IDispatch
*
)
&
div_onclick_obj
;
V_DISPATCH
(
&
v
)
=
(
IDispatch
*
)
&
div_onclick_obj
;
hres
=
IHTMLElement_put_onclick
(
div
,
v
);
hres
=
IHTMLElement_put_onclick
(
div
,
v
);
...
...
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