Skip to content
Jeremy Wootten edited this page Apr 1, 2023 · 8 revisions

Test cases for Drag and Drop within and between Views

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.

DND-01

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.

DND-01A

Repeat DND-01 with the destination folder open in another window.

Expected The same results as DND-01.

DND-01B

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.

DND-01C

Repeat DND-01 and DND-01a but while dragging press the <Shift><Ctrl> keys.

Expected The drag emblem should change from "Move" to "Link".

DND-01D

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.

DND-01E

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".

DND-02

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.

DND-02A

Repeat DND-02 with the destination folder open in another window.

Expected The same results as DND-02.

DND-03

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.

DND-03A

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.

DND-03B

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.

DND-04

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.

Clone this wiki locally