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
d468ed1e
Commit
d468ed1e
authored
Feb 23, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Feb 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Add more drag and drop tests.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b262dad0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
117 additions
and
1 deletion
+117
-1
dragdrop.c
dlls/ole32/tests/dragdrop.c
+117
-1
No files found.
dlls/ole32/tests/dragdrop.c
View file @
d468ed1e
...
...
@@ -140,7 +140,123 @@ struct method_call call_lists[][30] =
{
DoDragDrop_ret
,
DRAGDROP_S_DROP
,
0
,
0
,
0
},
{
DoDragDrop_effect_out
,
0
,
0
,
0
,
0
},
{
end_seq
,
0
,
0
,
0
,
0
}
}
},
{
/* Multiple initial effects */
{
DoDragDrop_effect_in
,
0
,
0
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
0
},
{
DO_EnumFormatEtc
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
EnumFMT_Reset
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
DO_QueryGetData
,
0
,
S_OK
,
0
,
1
},
{
DS_QueryContinueDrag
,
0
,
DRAGDROP_S_DROP
,
0
,
0
},
{
DT_DragEnter
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DT_Drop
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
0
,
0
,
0
},
{
DoDragDrop_ret
,
DRAGDROP_S_DROP
,
0
,
0
,
0
},
{
DoDragDrop_effect_out
,
0
,
0
,
0
,
0
},
{
end_seq
,
0
,
0
,
0
,
0
}
},
{
/* First couple of QueryContinueDrag return S_OK followed by a drop */
{
DoDragDrop_effect_in
,
0
,
0
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
0
},
{
DO_EnumFormatEtc
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
EnumFMT_Reset
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
DO_QueryGetData
,
0
,
S_OK
,
0
,
1
},
{
DS_QueryContinueDrag
,
0
,
S_OK
,
0
,
0
},
{
DT_DragEnter
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DT_DragOver
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DS_QueryContinueDrag
,
0
,
S_OK
,
0
,
0
},
{
DT_DragOver
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DS_QueryContinueDrag
,
0
,
DRAGDROP_S_DROP
,
0
,
0
},
{
DT_Drop
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
0
,
0
,
0
},
{
DoDragDrop_ret
,
DRAGDROP_S_DROP
,
0
,
0
,
0
},
{
DoDragDrop_effect_out
,
0
,
0
,
0
,
0
},
{
end_seq
,
0
,
0
,
0
,
0
}
},
{
/* First QueryContinueDrag cancels */
{
DoDragDrop_effect_in
,
0
,
0
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
0
},
{
DO_EnumFormatEtc
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
EnumFMT_Reset
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
DO_QueryGetData
,
0
,
S_OK
,
0
,
1
},
{
DS_QueryContinueDrag
,
0
,
DRAGDROP_S_CANCEL
,
0
,
0
},
{
DoDragDrop_ret
,
DRAGDROP_S_CANCEL
,
0
,
0
,
0
},
{
DoDragDrop_effect_out
,
0
,
0
,
0
,
0
},
{
end_seq
,
0
,
0
,
0
,
0
}
},
{
/* First couple of QueryContinueDrag return S_OK followed by a cancel */
{
DoDragDrop_effect_in
,
0
,
0
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
0
},
{
DO_EnumFormatEtc
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
EnumFMT_Reset
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
DO_QueryGetData
,
0
,
S_OK
,
0
,
1
},
{
DS_QueryContinueDrag
,
0
,
S_OK
,
0
,
0
},
{
DT_DragEnter
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DT_DragOver
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DS_QueryContinueDrag
,
0
,
S_OK
,
0
,
0
},
{
DT_DragOver
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DS_QueryContinueDrag
,
0
,
DRAGDROP_S_CANCEL
,
0
,
0
},
{
DT_DragLeave
,
0
,
0
,
0
,
0
},
{
DoDragDrop_ret
,
DRAGDROP_S_CANCEL
,
0
,
0
,
0
},
{
DoDragDrop_effect_out
,
0
,
0
,
0
,
0
},
{
end_seq
,
0
,
0
,
0
,
0
}
},
{
/* First couple of QueryContinueDrag return S_OK followed by a E_FAIL */
{
DoDragDrop_effect_in
,
0
,
0
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
0
},
{
DO_EnumFormatEtc
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
EnumFMT_Reset
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_OK
,
0
,
1
},
{
EnumFMT_Next
,
0
,
S_FALSE
,
0
,
1
},
{
DO_QueryGetData
,
0
,
S_OK
,
0
,
1
},
{
DS_QueryContinueDrag
,
0
,
S_OK
,
0
,
0
},
{
DT_DragEnter
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DT_DragOver
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DS_QueryContinueDrag
,
0
,
S_OK
,
0
,
0
},
{
DT_DragOver
,
DROPEFFECT_COPY
|
DROPEFFECT_MOVE
,
S_OK
,
DROPEFFECT_COPY
,
0
},
{
DS_GiveFeedback
,
DROPEFFECT_COPY
,
DRAGDROP_S_USEDEFAULTCURSORS
,
0
,
0
},
{
DS_QueryContinueDrag
,
0
,
E_FAIL
,
0
,
0
},
{
DT_DragLeave
,
0
,
0
,
0
,
0
},
{
DoDragDrop_ret
,
E_FAIL
,
0
,
0
,
0
},
{
DoDragDrop_effect_out
,
0
,
0
,
0
,
0
},
{
end_seq
,
0
,
0
,
0
,
0
}
},
};
static
int
droptarget_refs
;
...
...
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