-
-
Notifications
You must be signed in to change notification settings - Fork 78
dnd
The drag and drop actions can be carried out using primary or secondary key and with or without pressing a modifier key. Tests should be carried out using all combinations to test for unexpected results. Tests should also be carried out with IconView, ListView and ColumnView. Unless otherwise stated it is assumed both source and destination have the necessary permissions.
Using the primary button and no modifier, drag single local file and drop into another writable local folder in the same file system that is open in the same view.
Expected The drag icon bears the "Move" emblem when over the destination folder. The destination folder displays its "can accept drop" form. If the mouse is hovered over the destination folder before dropping, then the destination automatically opens in the view. Further hovering and auto-opening can be performed to get a new destination. On dropping, the file is moved into the destination folder. The operation can be undone with Ctrl-Z and redone with Ctrl-Shift-Z.
Repeat DND-01 with the destination folder open in another window.
Expected The same results as DND-01.
Repeat DND-01 and DND-01a but while dragging press the <Ctrl>
key.
Expected The drag emblem should change from "Move" to "Copy" and the file should be copied when dropped.
Repeat DND-01 and DND-01a but while dragging press the <Shift><Ctrl>
keys.
Expected The drag emblem should change from "Move" to "Link".
Repeat DND-01 and DND-01a but while dragging press the <Alt>
key.
Expected The drag emblem should change from "Move" to "Ask" if there was at least one valid action.
Repeat DND-01 and DND-01a but with a destination on a separate file system (so default action is "Copy"). While dragging* press the <Shift>
key.
Expected The drag emblem should change from "Copy" to "Move".
Using the secondary button and no modifier, drag single local file and drop into another writable local folder in the same file system that is open in the same view.
Expected The drag icon bears the "Ask" emblem when over the destination folder. The destination folder displays its "can accept drop" form. If the mouse is hovered over the destination folder before dropping, then the destination automatically opens in the view. Further hovering and auto-opening can be performed to get a new destination. On dropping, a context menu opens giving options to Move, Copy, Link or Cancel. If not canceled, the operation can be undone with Ctrl-Z and redone with Ctrl-Shift-Z.
Repeat DND-02 with the destination folder open in another window.
Expected The same results as DND-02.
Drag a file with the primary button and drop onto its parent folder.
Expected While hovering the parent folder, the 'link' emblem should show. When dropped a link is created.
Drag a file with the secondary button and drop onto its parent folder.
Expected While hovering the parent folder, the 'ask' emblem should show. When dropped a context menu with options to "Link", "Copy" or "Cancel" is shown. Choosing the "Copy" options copies the file to a new file with a modified name.
Drag a file with the primary button and while dragging hold down <Ctrl>
. Drop onto its parent folder.
Expected While hovering the parent folder, the 'copy' emblem should show. When dropped a copy with a modified name is created.
Repeat above tests using an expanded empty directory in ListView, dropping onto the dummy item.
Expected The results should be the same as for dropping onto the dummy's parent except that the folder does not auto-open.
The answers to some other frequently asked questions may be found on Stack Exchange